/* ==========================================================================
   1. Font: Vazir
   ========================================================================== */
@font-face {
    font-family: 'Vazir';
    src: url('../fonts/vazir/Vazir-Bold.woff2') format('woff2'),
         url('../fonts/vazir/Vazir-Bold.woff') format('woff'),
         url('../fonts/vazir/Vazir-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/vazir/Vazir-Regular.woff2') format('woff2'),
         url('../fonts/vazir/Vazir-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   2. CSS Variables
   ========================================================================== */
:root {
    --primary: #FF9927;
    --secondary: #FEC601;
    --primary-dark: #0056b3;
    --warning: #eb9500;
    --text: #333333;
    --text-light: #666;
    --border: #eee;
    --bg: #ffffff;
    --overlay-secondary: #EF3A4F;
    --bg-overlay: rgba(255, 255, 255, 0.9);
    --shadow: 0 4px 12px rgba(0, 0, 0, .1);
}

/* ==========================================================================
   3. Advanced Loading Overlay & Spinner
   ========================================================================== */
.loading-overlay {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    background: var(--bg-overlay);
    transition: opacity 0.3s ease;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 16px;
    background: var(--bg);
    box-shadow: var(--shadow);
    min-width: 180px;
    text-align: center;
}

/* Multi-ring spinner with gradient and glow */
.loading-spinner {
    position: relative;
    width: 60px;
    height: 60px;
}

.loading-spinner::before,
.loading-spinner::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 4px solid transparent;
    animation: spin 1.5s linear infinite;
}

.loading-spinner::before {
    border-top-color: var(--primary);
    border-left-color: var(--primary);
    box-shadow: 0 0 15px rgba(252, 105, 19, 1);
}

.loading-spinner::after {
    inset: 8px;
    border-top-color: var(--warning);
    border-right-color: var(--warning);
    animation-duration: 2s;
    animation-direction: reverse;
    box-shadow: 0 0 12px rgba(235, 149, 0, 0.3);
}

/* Pulsing dot in center */
.loading-spinner span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    margin: -6px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px var(--primary);
}

.loading-message {
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    opacity: 0.9;
}

/* Animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50%      { transform: scale(1.4); opacity: 1; }
}

/* ==========================================================================
   4. Tag Copy
   ========================================================================== */
.smart-login-tag-copy {
    cursor: copy;
    margin: 1px 3px;
    font-size: small;
    font-style: italic;
    font-weight: 100;
    padding: 1px;
}

.smart-login-tag-copy:hover {
    background-color: antiquewhite;
}

/* ==========================================================================
   5. Icons (SVG Background)
   ========================================================================== */
.smart-icon-form,
.smart-icon-notification,
.smart-icon-security,
.smart-icon-merge,
.smart-icon-advanced,
.smart-icon-style,
.smart-icon-poup,
.smart-icon-licence,
.smart-icon-help,
.smart-icon-upload,
.smart-icon-document {
    width: 15px;
    height: 15px;
    display: inline-block;
    background-size: 16px;
    background-repeat: no-repeat;
    vertical-align: middle;
}

.smart-icon-spiner {
    width: 22px;
    height: 22px;
    background-size: 22px;
    background-repeat: no-repeat;
    vertical-align: middle;
}

/* Individual icons */
.smart-icon-form         { background-image: url("../images/svg/01-forms.svg"); }
.smart-icon-notification { background-image: url("../images/svg/03-notices.svg"); }
.smart-icon-security     { background-image: url("../images/svg/04-security.svg"); }
.smart-icon-merge        { background-image: url("../images/svg/05-merge.svg"); }
.smart-icon-advanced     { background-image: url("../images/svg/06-advanced.svg"); }
.smart-icon-style        { background-image: url("../images/svg/07-style.svg"); }
.smart-icon-poup         { background-image: url("../images/svg/08-pop-up.svg"); }
.smart-icon-licence      { background-image: url("../images/svg/09-licence.svg"); }
.smart-icon-help         { background-image: url("../images/svg/10-help.svg"); }
.smart-icon-spiner       { background-image: url("../images/svg/ring-resize.svg"); }
.smart-icon-upload       { background-image: url("../images/svg/Upload.svg"); }
.smart-icon-document     { background-image: url("../images/svg/Document.svg"); }

/* ==========================================================================
   6. Typography
   ========================================================================== */
.smart-login-wrap,
.smart-login-wrap h2,
.akgt-tooltip,
.notyf__message,
.notyf-announcer {
    font-family: 'Vazir', serif;
}

.akgt-tooltip {
    line-height: 2;
}

/* ==========================================================================
   7. Input Direction
   ========================================================================== */
.link_login div input {
    direction: ltr;
}