﻿/* ============================================================ */
/*                    CSS VARIABLES - MODERN PALETTE             */
/* ============================================================ */
@font-face {
    font-family: 'IRANYekan';
    src: url('fonts/iranyekan-light.woff') format('woff');
    font-weight: 100 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANYekan';
    src: url('fonts/iranyekan-medium.woff') format('woff');
    font-weight: 500 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* ── Primary Accent: Soft Sky Blue #90D5FF ── */
    --blue-100: #e8f6ff;
    --blue-200: #c5e8ff;
    --blue-300: #90D5FF;
    --blue-400: #5bb8f0;
    --blue-500: #3898d4;
    --blue-600: #2679b0;
    /* ── Warm Gold #FFDE8F ── */
    --gold-100: #fffcf2;
    --gold-200: #fff5d6;
    --gold-300: #FFDE8F;
    --gold-400: #f5cc60;
    --gold-500: #d4a843;
    --gold-600: #a07828;
    /* ── Warm Peach #FFBC8F ── */
    --peach-100: #fff7f2;
    --peach-200: #ffe8d6;
    --peach-300: #FFBC8F;
    --peach-400: #f5985c;
    --peach-500: #d47540;
    --peach-600: #a05528;
    /* ── Neutrals ── */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    /* ── Shadows ── */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 14px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.16), 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-glow-blue: 0 0 0 4px rgba(144, 213, 255, 0.25);
    --shadow-glow-gold: 0 0 0 4px rgba(255, 222, 143, 0.3);
    --shadow-glow-peach: 0 0 0 4px rgba(255, 188, 143, 0.28);
    /* ── Radii ── */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 26px;
    --radius-full: 9999px;
    /* ── Transitions ── */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.7, 0.64, 1);
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;
}

/* ============================================================ */
/*                      RESET & BASE                             */
/* ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: 'IRANYekan', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(160deg, #f8faff 0%, #eef6fd 25%, #fef9f2 50%, #fff5ef 75%, #f8faff 100%);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
    color: var(--gray-800);
}

/* ============================================================ */
/*                  ANIMATED BACKGROUND ORBS                     */
/* ============================================================ */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    filter: blur(90px);
    animation: orbFloat 16s ease-in-out infinite;
}

.bg-orb--1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(144, 213, 255, 0.55) 0%, transparent 70%);
    top: -160px;
    right: -100px;
    animation-delay: 0s;
}

.bg-orb--2 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(255, 222, 143, 0.45) 0%, transparent 70%);
    bottom: -130px;
    left: -90px;
    animation-delay: -6s;
    animation-duration: 18s;
}

.bg-orb--3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 188, 143, 0.4) 0%, transparent 70%);
    top: 40%;
    left: -60px;
    animation-delay: -11s;
    animation-duration: 20s;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    20% {
        transform: translate(35px, -40px) scale(1.07);
    }

    40% {
        transform: translate(-25px, -15px) scale(0.94);
    }

    60% {
        transform: translate(-40px, 35px) scale(1.05);
    }

    80% {
        transform: translate(20px, 25px) scale(0.97);
    }
}

/* ============================================================ */
/*                    DOT GRID OVERLAY                            */
/* ============================================================ */
.bg-pattern {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
    background-image: radial-gradient(circle, #3b6fa0 1px, transparent 1px);
    background-size: 24px 24px;
}

/* ============================================================ */
/*                    CARD CONTAINER                              */
/* ============================================================ */
.card-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    animation: cardEntrance 0.7s var(--ease-out-expo) both;
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(36px) scale(0.94);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.6);
    padding: 2.2rem 2rem 2rem;
    position: relative;
    overflow: hidden;
    transition: box-shadow var(--duration-slow) var(--ease-in-out), transform var(--duration-normal) var(--ease-in-out);
}

    .card:hover {
        box-shadow: var(--shadow-xl), 0 0 0 1px rgba(144, 213, 255, 0.18);
        transform: translateY(-2px);
    }

    .card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 65%;
        height: 3px;
        background: linear-gradient(90deg, transparent 0%, var(--blue-300) 10%, var(--gold-300) 35%, var(--peach-300) 55%, var(--gold-300) 75%, var(--blue-300) 90%, transparent 100%);
        border-radius: 0 0 4px 4px;
        animation: shimmerLine 5s ease-in-out infinite;
    }

@keyframes shimmerLine {
    0%, 100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* ============================================================ */
/*                    BRAND ICON                                  */
/* ============================================================ */
.logo-container {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
}

.company-logo {
    max-width: 150px;
    width: 100%;
    height: auto;
    display: inline-block;
    transition: transform 0.3s ease;
}

    .company-logo:hover {
        transform: scale(1.05);
    }

.brand-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 0.7rem;
    background: linear-gradient(135deg, #e8f6ff 0%, #ffffff 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(144, 213, 255, 0.22), 0 0 0 1px rgba(144, 213, 255, 0.25);
    position: relative;
    z-index: 1;
    transition: transform var(--duration-normal) var(--ease-spring);
}

    .brand-icon:hover {
        transform: rotate(-8deg) scale(1.06);
    }

    .brand-icon svg {
        width: 26px;
        height: 26px;
        stroke: var(--blue-400);
        fill: none;
        stroke-width: 2;
    }

/* ============================================================ */
/*                    WELCOME BRAND TEXT                         */
/* ============================================================ */
.welcome-brand {
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    letter-spacing: -0.1px;
}

.brand-gradient {
    font-size: 1.15rem;
    font-weight: 800;
    background: linear-gradient(120deg, #0a517f, #3398DB);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* ============================================================ */
/*                    CARD TITLES                                 */
/* ============================================================ */
.card-title {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.1rem;
    letter-spacing: -0.2px;
}

.card-subtitle {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 1.4rem;
}

/* ============================================================ */
/*                    STEP INDICATOR                              */
/* ============================================================ */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.2rem;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-200);
    transition: all var(--duration-normal) var(--ease-in-out);
    position: relative;
    z-index: 1;
}

    .step-dot.active {
        background: var(--blue-300);
        box-shadow: 0 0 0 6px rgba(144, 213, 255, 0.22);
        animation: dotPulse 2s ease-in-out infinite;
    }

    .step-dot.done {
        background: var(--gold-400);
    }

@keyframes dotPulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(144, 213, 255, 0.2);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(144, 213, 255, 0.05);
    }
}

.step-line {
    width: 48px;
    height: 2px;
    background: var(--gray-200);
    transition: background var(--duration-normal) var(--ease-in-out);
    border-radius: 2px;
}

    .step-line.done {
        background: var(--gold-300);
    }

/* ============================================================ */
/*                    PHONE PREVIEW                               */
/* ============================================================ */
.phone-preview {
    text-align: center;
    font-size: 0.84rem;
    color: var(--gray-600);
    background: var(--blue-100);
    border-radius: var(--radius-full);
    padding: 0.4rem 1rem;
    display: inline-block;
    margin: 0 auto 0.8rem;
    width: fit-content;
    direction: ltr;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* ============================================================ */
/*                    OTP TIMER                                  */
/* ============================================================ */
.otp-timer {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-600);
    margin: 0.2rem 0 0.5rem;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    padding: 0.3rem 1rem;
    display: inline-block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    direction: ltr;
    letter-spacing: 0.5px;
}

/* ============================================================ */
/*                    VIEWS                                       */
/* ============================================================ */
.view {
    display: none;
    flex-direction: column;
    animation: viewFadeIn var(--duration-normal) var(--ease-out-expo) both;
}

    .view.active {
        display: flex;
    }

@keyframes viewFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================ */
/*                    BACK BUTTON                                 */
/* ============================================================ */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-500);
    padding: 0.3rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) var(--ease-in-out);
    align-self: flex-start;
    margin-bottom: 0.3rem;
    -webkit-tap-highlight-color: transparent;
    font-family: inherit;
}

    .back-btn svg {
        width: 18px;
        height: 18px;
    }

    .back-btn:hover {
        color: var(--blue-500);
        background: var(--blue-100);
    }

/* ============================================================ */
/*                    FORMS                                       */
/* ============================================================ */
.form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.input-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-700);
    letter-spacing: 0.1px;
    margin-right: 2px;
}

.optional-label {
    font-weight: 400;
    color: var(--gray-500);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

    .input-wrapper input {
        width: 100%;
        padding: 0.8rem 1rem;
        padding-left: 2.8rem;
        border: 2px solid var(--gray-200);
        border-radius: var(--radius-sm);
        font-size: 0.93rem;
        font-family: inherit;
        color: var(--gray-800);
        background: var(--white);
        transition: all var(--duration-normal) var(--ease-in-out);
        letter-spacing: 0.1px;
        -webkit-appearance: none;
        appearance: none;
    }

        .input-wrapper input:focus {
            outline: none;
            border-color: var(--blue-300);
            background: #fdfeff;
            box-shadow: var(--shadow-glow-blue);
        }

        .input-wrapper input::placeholder {
            color: var(--gray-400);
            font-weight: 400;
        }

        .input-wrapper input:-webkit-autofill {
            -webkit-box-shadow: 0 0 0 30px #fdfeff inset !important;
            box-shadow: 0 0 0 30px #fdfeff inset !important;
        }

        .input-wrapper input.no-pw {
            padding-left: 1rem;
        }

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
    transition: color var(--duration-fast) var(--ease-in-out);
    display: flex;
    align-items: center;
}

    .input-icon svg {
        width: 18px;
        height: 18px;
    }

.input-wrapper input:focus ~ .input-icon {
    color: var(--blue-400);
}

/* ── Password Toggle ── */
.pw-toggle {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--gray-400);
    transition: all var(--duration-fast) var(--ease-in-out);
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xs);
}

    .pw-toggle:hover {
        color: var(--gray-600);
        background: rgba(0, 0, 0, 0.03);
    }

    .pw-toggle:active {
        transform: translateY(-50%) scale(0.88);
    }

    .pw-toggle svg {
        width: 19px;
        height: 19px;
        pointer-events: none;
    }

/* ============================================================ */
/*                    SUBMIT BUTTON                               */
/* ============================================================ */
button,
input,
select,
textarea,
.btn-submit,
.btn-otp,
.btn-logout,
.btn-otp-block,
.link-btn {
    font-family: inherit;
}

.btn-submit {
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, var(--gold-300) 0%, var(--peach-300) 50%, var(--gold-400) 100%);
    color: #3d2e0a;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out-expo);
    letter-spacing: 0.2px;
    box-shadow: 0 4px 16px rgba(200, 150, 60, 0.2);
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    margin-top: 0.2rem;
}

    .btn-submit::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 40%, rgba(255, 255, 255, 0.15) 100%);
        opacity: 0;
        transition: opacity var(--duration-normal) var(--ease-in-out);
    }

    .btn-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 28px rgba(200, 150, 60, 0.3);
    }

        .btn-submit:hover::after {
            opacity: 1;
        }

    .btn-submit:active {
        transform: translateY(0) scale(0.97);
        box-shadow: 0 2px 8px rgba(200, 150, 60, 0.18);
        transition: all 80ms var(--ease-in-out);
    }

    .btn-submit:focus-visible {
        outline: 3px solid var(--peach-300);
        outline-offset: 3px;
    }

/* ============================================================ */
/*                    OTP BUTTONS & ROW                           */
/* ============================================================ */
.otp-row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.otp-input-wrapper {
    flex: 1;
    min-width: 0;
}

.btn-otp {
    flex-shrink: 0;
    padding: 0 0.9rem;
    background: var(--white);
    color: var(--blue-500);
    border: 2px solid var(--blue-200);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-in-out);
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

    .btn-otp:hover:not(:disabled) {
        background: var(--blue-100);
        border-color: var(--blue-300);
        color: var(--blue-600);
    }

    .btn-otp:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        background: var(--gray-100);
        border-color: var(--gray-200);
        color: var(--gray-500);
    }

.btn-otp-block {
    width: 100%;
    padding: 0.7rem 1rem;
    margin-top: 0.1rem;
}

.btn-otp-resend {
    background: transparent;
    border: 2px dashed var(--gray-300);
    color: var(--gray-600);
    margin-top: 0.3rem;
}

    .btn-otp-resend:hover:not(:disabled) {
        border-color: var(--blue-300);
        background: var(--blue-100);
        color: var(--blue-500);
    }

.btn-otp.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

.otp-status {
    min-height: 1.2rem;
    font-size: 0.76rem;
    font-weight: 600;
    margin: 0.1rem 0 0;
    line-height: 1.4;
}

    .otp-status.success {
        color: #065f46;
    }

    .otp-status.error {
        color: #991b1b;
    }

    .otp-status.warning {
        color: #92400e;
    }

.form-hint {
    font-size: 0.78rem;
    color: var(--gray-500);
    text-align: center;
    line-height: 1.5;
    margin: 0;
}

/* ============================================================ */
/*                    OTP BOXES - INDIVIDUAL DIGITS               */
/* ============================================================ */
.otp-boxes-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.otp-boxes-label {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-700);
}

.otp-boxes {
    display: flex;
    gap: 0.55rem;
    justify-content: center;
    direction: ltr;
}

.otp-digit {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: 'IRANYekan', system-ui, sans-serif;
    border: 2.5px solid var(--gray-200);
    border-radius: var(--radius-xs);
    background: var(--white);
    color: var(--gray-800);
    transition: all var(--duration-normal) var(--ease-out-expo);
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    caret-color: var(--blue-400);
    letter-spacing: 0;
    padding: 0;
}

    .otp-digit:focus {
        border-color: var(--blue-300);
        box-shadow: var(--shadow-glow-blue), 0 4px 14px rgba(144, 213, 255, 0.2);
        transform: translateY(-3px);
    }

    .otp-digit.filled {
        border-color: var(--blue-300);
        background: #f8fcff;
        box-shadow: 0 2px 8px rgba(144, 213, 255, 0.15);
    }

    .otp-digit.error-shake {
        animation: otpShake 0.5s var(--ease-in-out);
        border-color: #ef4444;
        box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
    }

@keyframes otpShake {
    0%, 100% {
        transform: translateX(0);
    }

    15% {
        transform: translateX(-6px);
    }

    30% {
        transform: translateX(6px);
    }

    45% {
        transform: translateX(-5px);
    }

    60% {
        transform: translateX(4px);
    }

    75% {
        transform: translateX(-2px);
    }

    90% {
        transform: translateX(1px);
    }
}

/* ============================================================ */
/*                    FORM LINKS                                  */
/* ============================================================ */
.form-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 1.2rem;
    flex-wrap: wrap;
}

.link-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--gray-500);
    transition: color var(--duration-fast) var(--ease-in-out);
    -webkit-tap-highlight-color: transparent;
    padding: 0.3rem 0.5rem;
    border-radius: var(--radius-xs);
    font-weight: 500;
}

    .link-btn:hover {
        color: var(--blue-500);
    }

.link-btn--accent {
    color: var(--peach-500);
    font-weight: 600;
}

    .link-btn--accent:hover {
        color: var(--peach-600);
    }

    .link-btn--accent strong {
        font-weight: 700;
    }

.link-divider {
    color: var(--gray-300);
    font-size: 0.7rem;
    user-select: none;
}

/* ============================================================ */
/*                    MESSAGE BANNERS                             */
/* ============================================================ */
.message {
    text-align: center;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-xs);
    font-size: 0.84rem;
    font-weight: 500;
    display: none;
    animation: messagePop 0.35s var(--ease-out-back) both;
    letter-spacing: 0.1px;
}

@keyframes messagePop {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.message.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    display: block;
}

.message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    display: block;
}

/* ============================================================ */
/*                    USER INFO PANEL                             */
/* ============================================================ */
.welcome-avatar {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-300) 0%, var(--blue-500) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    font-weight: 700;
    margin: 0 auto 0.8rem;
    box-shadow: 0 4px 18px rgba(144, 213, 255, 0.35);
    letter-spacing: 1px;
}

#userInfoView h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
    text-align: center;
}

.roles-badge {
    display: inline-block;
    background: var(--gold-200);
    color: var(--gold-600);
    padding: 0.3rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    text-align: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}


.btn-change-password-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.9rem 1.2rem;
    margin: 0.5rem 0 0.8rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e6f4ff 40%, #fdf6e8 100%);
    color: var(--blue-600);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(144, 213, 255, 0.2);
    letter-spacing: 0.2px;
}

    .btn-change-password-link::before {
        content: '';
        position: absolute;
        inset: -2px;
        border-radius: var(--radius-md);
        background: linear-gradient(135deg, var(--blue-300), var(--gold-300), var(--peach-300), var(--blue-300));
        background-size: 300% 300%;
        z-index: -1;
        animation: borderGlow 6s ease-in-out infinite;
        opacity: 0.7;
        transition: opacity 0.4s ease;
    }

    .btn-change-password-link::after {
        content: '';
        position: absolute;
        inset: 2px;
        border-radius: calc(var(--radius-md) - 2px);
        background: linear-gradient(135deg, #f8fcff 0%, #ffffff 50%, #fefcf5 100%);
        z-index: -1;
        transition: all 0.4s ease;
    }

    .btn-change-password-link .lock-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        background: linear-gradient(135deg, var(--blue-100), var(--blue-200));
        border-radius: 50%;
        color: var(--blue-500);
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        flex-shrink: 0;
    }

        .btn-change-password-link .lock-icon svg {
            width: 18px;
            height: 18px;
            stroke: currentColor;
            stroke-width: 2;
            fill: none;
        }

    .btn-change-password-link .btn-text {
        flex: 1;
        text-align: center;
        background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-weight: 700;
        transition: all 0.4s ease;
    }

    .btn-change-password-link .btn-chevron {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--blue-300);
        transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        flex-shrink: 0;
    }

        .btn-change-password-link .btn-chevron svg {
            width: 20px;
            height: 20px;
            stroke: currentColor;
            stroke-width: 2.5;
            fill: none;
        }

    .btn-change-password-link:hover {
        transform: translateY(-3px) scale(1.01);
        box-shadow: 0 10px 30px rgba(144, 213, 255, 0.35), 0 4px 14px rgba(255, 222, 143, 0.2);
    }

        .btn-change-password-link:hover::before {
            opacity: 1;
            animation-duration: 3s;
        }

        .btn-change-password-link:hover .lock-icon {
            transform: scale(1.1) rotate(-6deg);
            background: linear-gradient(135deg, var(--blue-200), var(--blue-300));
            color: var(--blue-600);
            box-shadow: 0 4px 12px rgba(144, 213, 255, 0.3);
        }

        .btn-change-password-link:hover .btn-chevron {
            transform: translateX(4px);
            color: var(--blue-400);
        }

    /* ===== Active ===== */
    .btn-change-password-link:active {
        transform: translateY(-1px) scale(0.97);
        transition: all 80ms ease;
    }


@keyframes borderGlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.btn-logout {
    padding: 0.7rem 1.6rem;
    background: transparent;
    color: #c0392b;
    border: 2px solid #f0c8c8;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-in-out);
    letter-spacing: 0.1px;
    -webkit-tap-highlight-color: transparent;
    display: block;
    margin: 0 auto;
}

    .btn-logout:hover {
        background: #fef2f2;
        border-color: #c0392b;
        color: #a71d2a;
        box-shadow: 0 4px 14px rgba(192, 57, 43, 0.1);
    }

    .btn-logout:active {
        transform: scale(0.95);
        transition: all 80ms var(--ease-in-out);
    }

/* ============================================================ */
/*                    RESPONSIVE DESIGN                           */
/* ============================================================ */
@media (max-width: 500px) {
    body {
        padding: 1rem;
        align-items: center;
        justify-content: center;
    }

    .company-logo {
        margin-top: 15px;
        max-width: 100px;
    }

    .card {
        padding: 1.5rem 1.1rem 1.4rem;
        border-radius: var(--radius-lg);
    }

        .card::before {
            width: 50%;
            height: 2.5px;
        }

    .brand-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

        .brand-icon svg {
            width: 22px;
            height: 22px;
        }

    .card-title {
        font-size: 1.2rem;
    }

    .card-subtitle {
        font-size: 0.78rem;
        margin-bottom: 1rem;
    }

    .welcome-brand {
        font-size: 0.85rem;
    }

    .brand-gradient {
        font-size: 1rem;
    }

    .input-wrapper input {
        padding: 0.72rem 0.85rem;
        padding-left: 2.5rem;
        font-size: 0.88rem;
    }

    .btn-submit {
        padding: 0.75rem 1.2rem;
        font-size: 0.9rem;
    }

    .form {
        gap: 0.75rem;
    }

    .pw-toggle {
        padding: 6px;
    }

        .pw-toggle svg {
            width: 17px;
            height: 17px;
        }

    .otp-digit {
        width: 40px;
        height: 48px;
        font-size: 1.2rem;
    }

    .otp-boxes {
        gap: 0.4rem;
    }

    .btn-otp {
        font-size: 0.76rem;
        padding: 0 0.65rem;
    }

    .form-links {
        flex-direction: column;
        gap: 0.2rem;
    }

    .link-divider {
        display: none;
    }

    .back-btn {
        font-size: 0.76rem;
    }

    .otp-timer {
        font-size: 0.75rem;
        padding: 0.25rem 0.8rem;
    }
}

@media (max-width: 370px) {
    .card {
        padding: 1.2rem 0.85rem 1.1rem;
        border-radius: var(--radius-md);
    }

    .card-title {
        font-size: 1.1rem;
    }

    .input-wrapper input {
        padding: 0.65rem 0.7rem;
        padding-left: 2.2rem;
        font-size: 0.84rem;
    }

    .btn-submit {
        padding: 0.68rem 1rem;
        font-size: 0.85rem;
    }

    .otp-digit {
        width: 36px;
        height: 44px;
        font-size: 1.1rem;
        border-width: 2px;
    }

    .otp-boxes {
        gap: 0.3rem;
    }

    .btn-otp {
        font-size: 0.72rem;
        padding: 0 0.5rem;
    }

    .brand-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

        .brand-icon svg {
            width: 20px;
            height: 20px;
        }
}

@media (min-width: 768px) {
    .card {
        padding: 2.5rem 2.5rem 2.2rem;
    }

    .otp-digit {
        width: 52px;
        height: 60px;
        font-size: 1.5rem;
    }

    .otp-boxes {
        gap: 0.65rem;
    }
}
