        :root {
            --primary: #6366f1;
            --primary-strong: #4f46e5;
            --accent: #f97316;
            --secondary: #14b8a6;
            --surface: rgba(15, 23, 42, 0.8);
            --surface-light: rgba(248, 250, 252, 0.96);
            --border: rgba(148, 163, 184, 0.3);
            --text-main: #e2e8f0;
            --text-muted: #94a3b8;
            --danger: #f87171;
            --header-max: 1440px;
        }

        * {
            box-sizing: border-box;
        }

        body.auth-body.theme-light {
            background: linear-gradient(135deg, #f8fafc, #e2e8f0);
            color: #0f172a;
        }

        body.theme-light .navbar {
            background: rgba(255, 255, 255, 0.9);
            border-bottom-color: rgba(15, 23, 42, 0.08);
        }

        body.theme-light .navbar-nav .nav-link {
            color: #0f172a;
        }

        body.theme-light .navbar-nav .nav-link:hover,
        body.theme-light .navbar-nav .nav-link:focus {
            color: var(--primary);
        }

        body.theme-light .auth-main,
        .auth-main.theme-light {
            background: linear-gradient(135deg, rgba(226, 232, 240, 0.45), rgba(191, 219, 254, 0.7));
        }

        body.theme-light .auth-container::before,
        body.theme-light .auth-container::after {
            background: radial-gradient(circle, rgba(99, 102, 241, 0.18), transparent 60%);
            filter: blur(5px);
        }

        body.theme-light .auth-panel::after {
            background: radial-gradient(circle at 60% 0%, rgba(249, 115, 22, 0.15), transparent 55%);
        }

        body.theme-light .auth-panel {
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(14, 165, 233, 0.15));
            border-color: rgba(99, 102, 241, 0.25);
            color: #0f172a;
        }

        body.theme-light .auth-panel p {
            color: rgba(15, 23, 42, 0.7);
        }

        body.theme-light .auth-card {
            background: rgba(255, 255, 255, 0.9);
            border-color: rgba(15, 23, 42, 0.08);
            color: #0f172a;
        }

        body.theme-light .auth-card__header p,
        body.theme-light .auth-meta-row,
        body.theme-light .form-check-label,
        body.theme-light .auth-switch {
            color: rgba(15, 23, 42, 0.65);
        }

        body.theme-light .auth-input {
            background: rgba(248, 250, 252, 0.9);
            border-color: rgba(15, 23, 42, 0.1);
        }

        body.theme-light .auth-input input {
            color: #0f172a;
        }

        body.theme-light .auth-panel__benefits .bx {
            color: var(--primary);
        }

        body.theme-light .auth-btn {
            box-shadow: 0 12px 25px rgba(79, 70, 229, 0.25);
        }

        body.theme-light .auth-alert--success {
            background: rgba(34, 197, 94, 0.15);
            border-color: rgba(34, 197, 94, 0.35);
        }

        body.theme-light .auth-alert--danger {
            background: rgba(248, 113, 113, 0.15);
            border-color: rgba(248, 113, 113, 0.35);
        }

        body.auth-page .header-shell,
        body.auth-page .header-floating,
        body.auth-page .main-navbar {
            position: static;
            top: auto;
        }

        body.auth-page .auth-main {
            margin-top: 1rem;
        }


        body.theme-dark .navbar {
            background: rgba(15, 23, 42, 0.85);
            border-bottom-color: rgba(148, 163, 184, 0.25);
        }


        body.theme-dark .auth-main,
        .auth-main.theme-dark {
            background: radial-gradient(circle at 20% -20%, rgba(99, 102, 241, 0.3), transparent 55%),
                radial-gradient(circle at 80% 0%, rgba(14, 165, 233, 0.25), transparent 45%);
        }

        body.theme-dark .auth-container::before,
        body.theme-dark .auth-container::after {
            background: radial-gradient(circle, rgba(99, 102, 241, 0.35), transparent 60%);
            filter: blur(12px);
        }

        body.theme-dark .auth-panel {
            background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(37, 99, 235, 0.4));
            border-color: rgba(99, 102, 241, 0.4);
            color: var(--text-main);
        }

        body.theme-dark .auth-panel::after {
            background: radial-gradient(circle at 75% 0%, rgba(249, 115, 22, 0.28), transparent 60%);
        }

        body.theme-dark .auth-panel p {
            color: rgba(226, 232, 240, 0.92);
        }

        body.theme-dark .auth-panel__benefits .bx {
            color: var(--accent);
        }

        body.theme-dark .auth-card {
            background: rgba(15, 23, 42, 0.85);
            border-color: rgba(148, 163, 184, 0.35);
            color: var(--text-main);
        }

        body.theme-dark .auth-card__header p,
        body.theme-dark .auth-meta-row,
        body.theme-dark .form-check-label,
        body.theme-dark .auth-switch {
            color: var(--text-muted);
        }

        body.theme-dark .auth-input {
            background: rgba(2, 6, 23, 0.65);
            border-color: rgba(99, 102, 241, 0.35);
        }

        body.theme-dark .auth-input input {
            color: var(--text-main);
        }

        body.theme-dark .auth-btn {
            box-shadow: 0 18px 40px rgba(37, 99, 235, 0.35);
        }

        body.theme-dark .auth-alert--success {
            background: rgba(34, 197, 94, 0.18);
            border-color: rgba(34, 197, 94, 0.4);
        }

        body.theme-dark .auth-alert--danger {
            background: rgba(248, 113, 113, 0.2);
            border-color: rgba(248, 113, 113, 0.45);
        }

       

       body.auth-body {
            margin: 0;
            min-height: 100vh;
            font-family: 'Tajawal', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            background: radial-gradient(circle at 20% -20%, rgba(99, 102, 241, 0.3), transparent 55%),
                radial-gradient(circle at 80% 0%, rgba(20, 184, 166, 0.35), transparent 40%),
                #020617;
            color: var(--text-main);
        }

        a {
            text-decoration: none;
        }

        .theme-toggle {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            border: 1px solid rgba(148, 163, 184, 0.35);
            background: rgba(15, 23, 42, 0.6);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.3rem;
            color: var(--text-main);
            transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
        }

        .theme-toggle:focus {
            outline: none;
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.35);
        }

        .theme-toggle:hover {
            border-color: rgba(99, 102, 241, 0.6);
            transform: translateY(-1px);
        }

        .theme-toggle__icon {
            font-size: 1.2rem;
            line-height: 1;
            transition: opacity 0.2s ease;
        }

        body.theme-dark .theme-toggle__icon--sun,
        body.theme-light .theme-toggle__icon--moon {
            opacity: 0.2;
        }

        body.theme-light .theme-toggle {
            background: rgba(248, 250, 252, 0.95);
            border-color: rgba(148, 163, 184, 0.35);
            color: #0f172a;
        }

        .navbar {
            background: rgba(15, 23, 42, 0.75);
            backdrop-filter: blur(16px);
            border-bottom: 1px solid var(--border);
            padding: 1rem 0;
            position: relative;
            z-index: 1040;
        }

        .navbar-brand img {
            filter: drop-shadow(0 10px 25px rgba(15, 23, 42, 0.45));
        }

        .navbar-nav .nav-link {
            font-weight: 600;
            color: var(--text-main);
            transition: color 0.2s ease;
        }

        .navbar-nav .nav-link:hover,
        .navbar-nav .nav-link:focus {
            color: var(--secondary);
        }

        .auth-main {
            padding: clamp(1.8rem, 6vw, 4rem) clamp(1rem, 4vw, 2.5rem) clamp(3rem, 8vw, 5rem);
        }

        .auth-container {
            position: relative;
        }

        .auth-container::before,
        .auth-container::after {
            content: '';
            position: absolute;
            width: 220px;
            height: 220px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(99, 102, 241, 0.35), transparent 60%);
            filter: blur(10px);
            z-index: 0;
        }

        .auth-container::before {
            top: -80px;
            left: -60px;
        }

        .auth-container::after {
            bottom: -100px;
            right: -40px;
        }

        .auth-grid {
            position: relative;
            z-index: 1;
            display: grid;
            gap: clamp(1.5rem, 3vw, 2.5rem);
        }

        @media (min-width: 992px) {
            .auth-grid {
                grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
                align-items: stretch;
            }
        }

        .auth-panel {
            border-radius: 36px;
            padding: clamp(1.5rem, 3vw, 2.5rem);
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(14, 165, 233, 0.18));
            border: 1px solid rgba(99, 102, 241, 0.35);
            position: relative;
            overflow: hidden;
        }

        .auth-panel::after {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at 80% 0%, rgba(249, 115, 22, 0.25), transparent 55%);
            pointer-events: none;
        }

        .auth-panel>* {
            position: relative;
            z-index: 1;
        }

        .auth-panel__eyebrow {
            text-transform: uppercase;
            letter-spacing: 0.35em;
            font-size: 0.78rem;
            margin-bottom: 0.8rem;
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
        }

        .auth-panel__eyebrow::before {
            content: '';
            width: 32px;
            height: 1px;
            background: currentColor;
            display: inline-block;
        }

        .auth-panel h1,
        .auth-panel h2 {
            margin: 0 0 0.8rem;
            font-size: clamp(2rem, 4vw, 2.8rem);
            font-weight: 700;
        }

        .auth-panel p {
            margin: 0 0 1.5rem;
            color: rgba(226, 232, 240, 0.9);
        }

        .auth-panel__benefits {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            gap: 0.85rem;
        }

        .auth-panel__benefits li {
            display: flex;
            gap: 0.65rem;
            align-items: flex-start;
            font-weight: 500;
        }

        .auth-panel__benefits .bx {
            font-size: 1.3rem;
            color: var(--accent);
        }

        .auth-card {
            border-radius: 30px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(148, 163, 184, 0.35);
            backdrop-filter: blur(18px);
            color: var(--text-main);
        }

        .auth-card__inner {
            padding: clamp(1.5rem, 4vw, 2.75rem);
        }

        .auth-card__header h2 {
            margin: 0 0 0.3rem;
            font-size: 1.8rem;
            font-weight: 700;
        }

        .auth-card__header p {
            margin: 0 0 1.5rem;
            color: var(--text-muted);
        }

        .auth-field {
            margin-bottom: 1.15rem;
        }

        .auth-label {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-weight: 600;
            margin-bottom: 0.35rem;
        }

        .auth-input {
            position: relative;
            display: flex;
            align-items: center;
            border-radius: 18px;
            border: 1px solid rgba(148, 163, 184, 0.35);
            background: rgba(15, 23, 42, 0.65);
            padding: 0.25rem 0.75rem;
        }

        .auth-input .bx {
            font-size: 1.25rem;
            color: var(--text-muted);
        }

        .auth-input input {
            flex: 1;
            border: none;
            background: transparent;
            color: var(--text-main);
            font-size: 1rem;
            padding: 0.75rem;
        }

        .auth-input input:focus {
            outline: none;
        }

        .auth-input:focus-within {
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
        }

        .auth-error {
            color: var(--danger);
            font-size: 0.85rem;
            margin-top: 0.35rem;
            display: block;
        }

        .auth-meta-row {
            display: flex;
            justify-content: space-between;
            gap: 0.75rem;
            flex-wrap: wrap;
            align-items: center;
            font-size: 0.9rem;
            color: var(--text-muted);
        }

        .auth-meta-row a {
            color: var(--text-main);
            font-weight: 600;
        }

        .auth-meta-row a:hover,
        .auth-meta-row a:focus {
            color: var(--secondary);
        }

        .auth-btn {
            width: 100%;
            border: none;
            border-radius: 18px;
            padding: 0.95rem 1rem;
            font-size: 1rem;
            font-weight: 600;
            background: linear-gradient(135deg, var(--primary), var(--primary-strong));
            color: #fff;
            box-shadow: 0 18px 35px rgba(79, 70, 229, 0.35);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .auth-btn:hover,
        .auth-btn:focus {
            transform: translateY(-2px);
            box-shadow: 0 25px 45px rgba(79, 70, 229, 0.45);
        }

        .auth-switch {
            margin-top: 1.5rem;
            text-align: center;
            color: var(--text-muted);
        }

        .auth-switch a {
            color: var(--secondary);
            font-weight: 600;
        }

        .auth-alert {
            border-radius: 16px;
            padding: 0.9rem 1rem;
            margin-bottom: 1rem;
            font-size: 0.95rem;
        }

        .auth-alert--success {
            background: rgba(34, 197, 94, 0.12);
            border: 1px solid rgba(34, 197, 94, 0.4);
        }

        .auth-alert--danger {
            background: rgba(248, 113, 113, 0.12);
            border: 1px solid rgba(248, 113, 113, 0.4);
        }

        .form-check-input {
            background-color: transparent;
            border-color: rgba(148, 163, 184, 0.6);
        }

        .form-check-input:checked {
            background-color: var(--primary);
            border-color: var(--primary);
        }

        .form-check-label {
            color: var(--text-muted);
        }



        .animate-on-load {
            opacity: 0;
            transform: translateY(24px);
            animation: fadeUp 0.8s ease forwards;
        }

        .animate-on-load:nth-child(2) {
            animation-delay: 0.15s;
        }

        @keyframes fadeUp {
            from {
                opacity: 0;
                transform: translateY(24px);
            }

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

        @media (max-width: 768px) {
            .navbar-brand img {
                width: 120px;
                height: auto;
            }

            .auth-grid {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }

            .auth-panel,
            .auth-card {
                border-radius: 22px;
            }

            .auth-card {
                order: 1;
            }

            .auth-panel {
                order: 2;
            }

            .navbar .nav-actions {
                width: 100%;
                justify-content: flex-start;
                flex-wrap: wrap;
                gap: 0.75rem;
                margin-top: 0.8rem;
            }

            .auth-panel__eyebrow {
                letter-spacing: 0.2em;
            }

            .auth-panel h1,
            .auth-panel h2 {
                font-size: clamp(1.6rem, 6vw, 2.1rem);
            }

            .auth-panel__benefits li {
                font-size: 0.95rem;
            }

            .auth-card__inner {
                padding: 1.25rem;
            }

            .auth-input {
                border-radius: 14px;
            }

            .auth-meta-row {
                flex-direction: column;
                align-items: flex-start;
            }

            .auth-btn {
                font-size: 0.95rem;
            }

            .auth-container::before,
            .auth-container::after {
                width: 140px;
                height: 140px;
            }

            .theme-toggle {
                width: 44px;
                height: 44px;
            }
        }

        @media (max-width: 576px) {
            .navbar {
                padding: 0.6rem 0;
            }

            .navbar .btn,
            .navbar .nav-link {
                padding: 0.35rem 0.75rem;
            }

            .auth-main {
                padding: 1.8rem 0 3rem;
            }

            .auth-panel,
            .auth-card {
                padding: 1rem;
            }

            .auth-card__inner {
                padding: 1rem;
            }

            .auth-panel__benefits {
                gap: 0.65rem;
            }

            .auth-panel__eyebrow {
                letter-spacing: 0.15em;
            }

            .navbar-brand img {
                width: 110px;
            }

            .theme-toggle {
                width: 40px;
                height: 40px;
            }

            .auth-switch {
                font-size: 0.95rem;
            }
        }
        @media (max-width: 991.98px) {
            .auth-grid {
                grid-template-columns: 1fr;
            }

            .auth-card {
                order: 1;
            }

            .auth-panel {
                order: 2;
                text-align: center;
                padding: 1.25rem;
                border-radius: 26px;
            }

            .auth-panel__benefits {
                align-items: flex-start;
            }

            .auth-meta-row {
                flex-direction: column;
                align-items: flex-start;
            }
        }

        @media (max-width: 575.98px) {
            .auth-container {
                padding-inline: 0.75rem;
            }

            .auth-card,
            .auth-panel {
                border-radius: 22px;
            }

            .auth-card__inner {
                padding: 1.15rem;
            }

            .auth-panel__benefits li {
                align-items: center;
                font-size: 0.92rem;
            }

            .auth-meta-row {
                gap: 0.5rem;
                width: 100%;
            }

            .auth-meta-row a {
                width: 100%;
                text-align: left;
            }
        }
