
        * { margin: 0; padding: 0; box-sizing: border-box; }
        html, body {
            height: 100%;
            font-family: 'Yekan', 'Tahoma', 'Arial', sans-serif;
            background: #09090b;
            color: #f3f1ec;
            overflow: hidden;
        }

        /* ============================================
           پس‌زمینه
           ============================================ */
        .on-bg-wrap {
            position: fixed;
            inset: 0;
            overflow: hidden;
            pointer-events: none;
            z-index: 0;
        }
        .on-bg-glow {
            position: absolute;
            border-radius: 50%;
            filter: blur(120px);
        }
        .on-bg-glow-top {
            top: -10%;
            left: -10%;
            width: 40%;
            height: 40%;
            background: rgba(245, 158, 11, 0.04);
            animation: on-pulse 4s ease-in-out infinite;
        }
        .on-bg-glow-bottom {
            bottom: -10%;
            right: -10%;
            width: 40%;
            height: 40%;
            background: rgba(56, 189, 248, 0.04);
            animation: on-pulse 4s ease-in-out infinite 0.7s;
        }
        .on-bg-dots {
            position: absolute;
            inset: 0;
            background-image: radial-gradient(circle, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
            background-size: 24px 24px;
        }
        @keyframes on-pulse {
            0%, 100% { opacity: 0.6; transform: scale(1); }
            50% { opacity: 1; transform: scale(1.1); }
        }

        /* ============================================
           کانتینر اصلی
           ============================================ */
        .login-wrapper {
            position: relative;
            z-index: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            padding: 20px;
        }

        /* ============================================
           کارت اصلی
           ============================================ */
        .on-card-wrap {
            width: 100%;
            max-width: 400px;
        }
        @media (min-width: 1024px) {
            .on-card-wrap { max-width: 420px; }
        }
        .on-card {
            background: rgba(24, 24, 27, 0.9);
            border: 1px solid rgba(63, 63, 70, 0.6);
            border-radius: 1.5rem;
            padding: 2rem 1.5rem;
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(8px);
            position: relative;
            min-height: 500px;
            transition: all 0.5s ease;
        }
        @media (min-width: 640px) {
            .on-card { padding: 2rem; border-radius: 2rem; min-height: 540px; }
        }

        /* ============================================
           لوگو
           ============================================ */
        .on-card-header {
            text-align: center;
            margin-bottom: 1.5rem;
        }
        .on-logo {
            width: 56px;
            height: 56px;
            margin: 0 auto 12px;
            border-radius: 1rem;
            background: rgba(245, 158, 11, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            color: #f59e0b;
            transition: all 0.5s ease;
        }
        .on-logo:hover {
            transform: scale(1.1);
            background: rgba(245, 158, 11, 0.2);
        }
        .on-card-title {
            font-size: 1.25rem;
            font-weight: 700;
            color: #ffffff;
            letter-spacing: -0.025em;
        }
        .on-card-subtitle {
            color: #a1a1aa;
            font-size: 0.875rem;
            margin-top: 0.25rem;
        }

.otp-input:focus {
    border-color: rgba(251, 191, 36, 0.5) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
    background: rgba(255, 255, 255, 0.06) !important;
}

.otp-input.otp-success {
    border-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.1) !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
    color: #10b981 !important;
}

.otp-input.otp-error {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.1) !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.15);
    color: #ef4444 !important;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}


@media (max-width: 480px) {
    .otp-container {
        gap: 8px !important;
    }
    .otp-input {
        width: 44px !important;
        height: 52px !important;
        font-size: 20px !important;
        border-radius: 10px !important;
    }
}

        .on-tabs {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 4px;
            background: rgba(255,255,255,0.04);
            border-radius: 12px;
            padding: 4px;
            margin-bottom: 20px;
        }
        .on-tab {
            padding: 8px 6px;
            border: none;
            border-radius: 10px;
            background: transparent;
            color: rgba(255,255,255,0.4);
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: inherit;
            text-align: center;
        }
        .on-tab.active {
            background: rgba(245, 158, 11, 0.12);
            color: #f59e0b;
            box-shadow: 0 4px 20px rgba(245, 158, 11, 0.08);
        }
        .on-tab:hover:not(.active) {
            color: rgba(255,255,255,0.6);
            background: rgba(255,255,255,0.03);
        }
        .on-tab i {
            display: block;
            font-size: 16px;
            margin-bottom: 4px;
        }
        .on-tab span {
            display: block;
            font-size: 12px;
            color: #fff;
        }
        @media (min-width: 480px) {
            .on-tab { font-size: 13px; padding: 8px 10px; }
            .on-tab i { display: inline; font-size: 14px; margin-bottom: 0; margin-left: 4px; }
            .on-tab span { display: inline; font-size: inherit; }
        }


        .on-form-container {
            position: relative;
            min-height: 280px;
        }
        .on-form {
            display: none;
            animation: formFadeIn 0.4s ease;
        }
        .on-form.active {
            display: block;
        }
        @keyframes formFadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .on-field {
            display: flex;
            flex-direction: column;
            gap: 4px;
            margin-bottom: 14px;
        }
        .on-label {
            display: block;
            font-size: 0.875rem;
            font-weight: 500;
            color: #d4d4d8;
            text-align: right;
        }
        .on-label-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .on-forgot {
            font-size: 0.75rem;
            font-weight: 600;
            color: rgba(245, 158, 11, 0.6);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            text-decoration: none;
            transition: color 0.3s ease;
            cursor: pointer;
            background: none;
            border: none;
            font-family: inherit;
        }
        .on-forgot:hover { color: #f59e0b; }

        .on-input-wrap {
            position: relative;
        }
        .on-input-icon {
            position: absolute;
            right: 0.875rem;
            top: 50%;
            transform: translateY(-50%);
            color: #71717a;
            transition: color 0.3s ease;
            font-size: 0.875rem;
        }
        .on-input-wrap:focus-within .on-input-icon { color: #f59e0b; }

        .on-input {
            width: 100%;
            padding: 0.625rem 2.75rem 0.625rem 1rem;
            background: rgba(24, 24, 27, 0.8);
            border: 1px solid #3f3f46;
            border-radius: 0.75rem;
            color: #ffffff;
            transition: all 0.3s ease;
            font-size: 0.875rem;
            font-family: inherit;
            text-align: right;
        }
        .on-input::placeholder {
            color: #71717a;
            text-align: right;
        }
        .on-input:focus {
            border-color: rgba(245, 158, 11, 0.5);
            outline: none;
            box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.15);
        }
        .on-input-error {
            border-color: rgba(239, 68, 68, 0.5);
            background: rgba(239, 68, 68, 0.05);
        }

        .on-password-toggle {
            position: absolute;
            left: 0.875rem;
            top: 50%;
            transform: translateY(-50%);
            color: #71717a;
            transition: color 0.3s ease;
            background: none;
            border: none;
            cursor: pointer;
            padding: 4px;
        }
        .on-password-toggle:hover { color: #ffffff; }

        .on-error-box {
            padding: 10px 14px;
            border-radius: 10px;
            background: rgba(239, 68, 68, 0.08);
            border: 1px solid rgba(239, 68, 68, 0.12);
            color: #f87171;
            font-size: 13px;
            display: flex;
            align-items: flex-start;
            gap: 8px;
            margin-bottom: 14px;
            animation: formFadeIn 0.4s ease;
        }
        .on-error-box i { 
            margin-top: 2px; 
            flex-shrink: 0;
        }
        .on-error-box a {
            color: #fbbf24;
            text-decoration: none;
        }
        .on-error-box a:hover {
            color: #f59e0b;
            text-decoration: underline;
        }
        .on-error-box strong {
            color: #f87171;
        }

        .on-success-box {
            padding: 10px 14px;
            border-radius: 10px;
            background: rgba(16, 185, 129, 0.08);
            border: 1px solid rgba(16, 185, 129, 0.12);
            color: #34d399;
            font-size: 13px;
            display: flex;
            align-items: flex-start;
            gap: 8px;
            margin-bottom: 14px;
            animation: formFadeIn 0.4s ease;
        }
        .on-success-box i { 
            margin-top: 2px; 
            flex-shrink: 0;
        }

        .on-remember {
            display: flex;
            align-items: center;
            margin: 4px 0 14px;
        }
        .on-checkbox-label {
            display: flex;
            align-items: center;
            gap: 0.625rem;
            cursor: pointer;
        }
        .on-checkbox-wrap { position: relative; }
        .on-checkbox-input {
            position: absolute;
            opacity: 0;
            width: 0;
            height: 0;
        }
        .on-checkbox-box {
            width: 18px;
            height: 18px;
            border: 1px solid #3f3f46;
            border-radius: 0.25rem;
            background: #18181b;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }
        .on-checkbox-input:checked + .on-checkbox-box {
            background: #f59e0b;
            border-color: #f59e0b;
        }
        .on-checkbox-icon {
            font-size: 10px;
            color: #18181b;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        .on-checkbox-input:checked + .on-checkbox-box .on-checkbox-icon {
            opacity: 1;
        }
        .on-checkbox-text {
            color: #a1a1aa;
            font-size: 0.875rem;
            transition: color 0.3s ease;
        }
        .on-checkbox-label:hover .on-checkbox-text { color: #d4d4d8; }

        .on-submit {
            width: 100%;
            padding: 0.625rem;
            background: #f59e0b;
            color: #000000;
            font-weight: 700;
            border: none;
            border-radius: 0.75rem;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            font-family: inherit;
        }
        .on-submit:hover {
            background: #d97706;
            transform: scale(1.02);
        }
        .on-submit:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        .on-submit.loading {
            opacity: 0.7;
            cursor: wait;
        }
        .on-submit.loading i {
            animation: spin 0.8s linear infinite;
        }
        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* ============================================
           جداکننده
           ============================================ */
        .on-divider {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0.5rem 0;
        }
        .on-divider-line {
            position: absolute;
            inset-x: 0;
            height: 1px;
            background: rgba(63, 63, 70, 0.6);
        }
        .on-divider-text {
            position: relative;
            padding: 0 1rem;
            background: #18181b;
            color: #52525b;
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 0.2em;
            font-weight: 700;
        }

        /* ============================================
           شبکه‌های اجتماعی
           ============================================ */
        .on-social {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0.5rem;
        }
        .on-social-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0.625rem;
            border-radius: 0.75rem;
            border: 1px solid #3f3f46;
            background: rgba(24, 24, 27, 0.5);
            color: #a1a1aa;
            transition: all 0.3s ease;
            font-size: 1.125rem;
            text-decoration: none;
        }
        .on-social-btn:hover {
            color: #ffffff;
            border-color: #52525b;
            background: #27272a;
        }
        .on-social-btn i { font-size: 20px; }

        /* ============================================
           فوتر
           ============================================ */
        .on-footer {
            margin-top: 1rem;
            text-align: center;
        }
        .on-footer-text {
            color: #71717a;
            font-size: 0.875rem;
        }
        .on-footer-link {
            color: #f59e0b;
            font-weight: 500;
            text-decoration: none;
            transition: color 0.3s ease;
            cursor: pointer;
            background: none;
            border: none;
            font-family: inherit;
        }
        .on-footer-link:hover { color: #d97706; }

        /* ============================================
           موفقیت (تیک سبز با هاله)
           ============================================ */
        .on-success-state {
            position: absolute;
            inset: 0;
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background: rgba(24, 24, 27, 0.95);
            border-radius: 1.5rem;
            padding: 2rem;
            z-index: 20;
            animation: on-success-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
        }
        @media (min-width: 640px) {
            .on-success-state { border-radius: 2rem; }
        }
        .on-success-state.show {
            display: flex;
        }

        @keyframes on-success-in {
            0% { opacity: 0; transform: scale(0.8); }
            100% { opacity: 1; transform: scale(1); }
        }

        .on-success-icon {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: rgba(52, 211, 153, 0.15);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1.5rem;
            position: relative;
            animation: on-success-pulse 1.5s ease-in-out infinite;
        }
        .on-success-icon i {
            font-size: 44px;
            color: #34d399;
        }

        .on-success-icon .ring {
            position: absolute;
            border-radius: 50%;
            border: 2px solid rgba(52, 211, 153, 0.15);
            animation: ringPulse 2.5s ease-out infinite;
        }
        .on-success-icon .ring:nth-child(1) {
            width: 100%;
            height: 100%;
            animation-delay: 0s;
        }
        .on-success-icon .ring:nth-child(2) {
            width: 140%;
            height: 140%;
            animation-delay: 0.6s;
        }
        .on-success-icon .ring:nth-child(3) {
            width: 180%;
            height: 180%;
            animation-delay: 1.2s;
        }

        @keyframes ringPulse {
            0% { transform: scale(1); opacity: 0.6; }
            100% { transform: scale(1.6); opacity: 0; }
        }

        @keyframes on-success-pulse {
            0%, 100% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.3);
            }
            50% {
                transform: scale(1.05);
                box-shadow: 0 0 40px 10px rgba(52, 211, 153, 0.15);
            }
        }

        .on-success-title {
            font-size: 2rem;
            font-weight: 900;
            color: #34d399;
            letter-spacing: 0.05em;
            margin-bottom: 0.5rem;
            text-shadow: 0 0 40px rgba(52, 211, 153, 0.2);
        }
        .on-success-text {
            color: #a1a1aa;
            font-size: 0.875rem;
            margin-bottom: 0.5rem;
        }
        .on-success-redirect {
            color: #52525b;
            font-size: 0.75rem;
            animation: on-success-blink 1.2s ease-in-out infinite;
        }
        @keyframes on-success-blink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.3; }
        }

        /* ============================================
           پاسخگو
           ============================================ */
        @media (max-width: 480px) {
            .on-card {
                padding: 18px 14px;
                border-radius: 18px;
                min-height: 460px;
            }
            .on-card-title { font-size: 1.1rem; }
            .on-tab { font-size: 11px; padding: 6px 4px; }
            .on-tab i { font-size: 14px; }
            .on-input { font-size: 14px; padding: 10px 2.5rem 10px 1rem; }
            .on-submit { font-size: 15px; padding: 12px; }
            .on-social-btn { padding: 0.5rem; }
            .on-social { grid-template-columns: repeat(2, 1fr); }
            .on-success-icon { width: 64px; height: 64px; }
            .on-success-icon i { font-size: 34px; }
            .on-success-title { font-size: 1.5rem; }
        }

        @media (prefers-reduced-motion: reduce) {
            * {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }