        :root {
            --brand-primary: #2d001c;
            --brand-primary-dark: #190010;
            --brand-primary-wine: #3e052e;
            --brand-accent-gold: #c89327;
            --brand-accent-light: #dfa938;
            --brand-accent-glow: #f7ee8d;
            --brand-rose-silk: #ebd3e2;
            --brand-champagne: #faf0f6;
            --gold-gradient: linear-gradient(135deg, #b8821f 0%, #e6b747 50%, #c89327 100%);
            --gold-gradient-hover: linear-gradient(135deg, #c89327 0%, #f7ee8d 50%, #b8821f 100%);
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Cairo', sans-serif;
        }

        body {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #14000d;
            background-image: 
                radial-gradient(circle at 18% 22%, rgba(200, 147, 39, 0.18) 0%, transparent 40%),
                radial-gradient(circle at 82% 78%, rgba(138, 22, 85, 0.3) 0%, transparent 45%),
                radial-gradient(circle at 50% 50%, rgba(62, 5, 46, 0.42) 0%, transparent 60%),
                linear-gradient(135deg, #180010 0%, #29011e 50%, #11000b 100%);
            background-attachment: fixed;
            position: relative;
            overflow-x: hidden;
            padding: 14px 16px;
        }

        /* Ambient floating lights */
        .ambient-orb {
            position: fixed;
            border-radius: 50%;
            filter: blur(85px);
            pointer-events: none;
            z-index: 0;
            opacity: 0.65;
            animation: floatOrb 12s infinite alternate ease-in-out;
        }
        .orb-1 {
            width: 380px;
            height: 380px;
            background: rgba(200, 147, 39, 0.15);
            top: -100px;
            right: -80px;
        }
        .orb-2 {
            width: 440px;
            height: 440px;
            background: rgba(112, 17, 67, 0.25);
            bottom: -120px;
            left: -100px;
            animation-duration: 15s;
        }

        @keyframes floatOrb {
            0% { transform: translateY(0) scale(1); }
            100% { transform: translateY(30px) scale(1.08); }
        }

        /* Luxury geometric background rings */
        .bg-ring {
            position: fixed;
            border-radius: 50%;
            border: 1px solid rgba(200, 147, 39, 0.08);
            pointer-events: none;
            z-index: 0;
        }
        .bg-ring-1 {
            width: 620px;
            height: 620px;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }
        .bg-ring-2 {
            width: 860px;
            height: 860px;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            border: 1px dashed rgba(200, 147, 39, 0.06);
        }

        /* Main Container */
        .login-wrapper {
            position: relative;
            z-index: 10;
            width: 100%;
            max-width: 390px;
        }

        /* Glassmorphic Luxury Card */
        .login-card {
            background: rgba(36, 2, 26, 0.76);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border-radius: 22px;
            border: 1px solid rgba(200, 147, 39, 0.35);
            padding: 18px 24px 16px 24px;
            box-shadow: 
                0 25px 65px rgba(0, 0, 0, 0.7),
                0 0 40px rgba(200, 147, 39, 0.12),
                inset 0 1px 1px rgba(247, 238, 141, 0.25);
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        /* Golden shimmer line at card top */
        .login-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 8%;
            right: 8%;
            height: 2px;
            background: linear-gradient(90deg, transparent, #c89327, #f7ee8d, #c89327, transparent);
        }

        /* Brand Showcase Header */
        .brand-header {
            text-align: center;
            margin-bottom: 8px;
        }

        .logo-frame {
            width: 56px;
            height: 56px;
            margin: 0 auto 6px auto;
            border-radius: 14px;
            padding: 2px;
            background: linear-gradient(135deg, rgba(200, 147, 39, 0.85) 0%, rgba(247, 238, 141, 0.45) 50%, rgba(200, 147, 39, 0.85) 100%);
            box-shadow: 0 10px 28px rgba(200, 147, 39, 0.28);
            position: relative;
            display: inline-block;
            transition: transform 0.3s ease;
        }

        .logo-frame:hover {
            transform: scale(1.04);
        }

        .logo-frame img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 15px;
            background: #11000b;
            display: block;
        }

        .brand-name {
            font-size: 1.05rem;
            font-weight: 800;
            color: #dfa938;
            background: linear-gradient(135deg, #f7ee8d 0%, #dfa938 50%, #c89327 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin: 0 0 2px 0;
            letter-spacing: 0.5px;
            display: block;
            text-shadow: 0 2px 10px rgba(200, 147, 39, 0.2);
        }

        .page-title {
            color: #ffffff;
            font-size: 1.18rem;
            font-weight: 800;
            margin: 0 0 2px 0;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
        }

        .page-subtitle {
            color: rgba(235, 211, 226, 0.75);
            font-size: 0.76rem;
            font-weight: 400;
            margin: 0;
        }

        /* Divider with gold diamond */
        .luxury-divider {
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 8px 0 10px 0;
            gap: 10px;
        }
        .luxury-divider .line {
            flex: 1;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(200, 147, 39, 0.35), transparent);
        }
        .luxury-divider .diamond {
            color: #c89327;
            font-size: 0.75rem;
            opacity: 0.85;
        }

        /* Error Banner */
        .error-alert {
            background: rgba(220, 53, 69, 0.16);
            border: 1px solid rgba(220, 53, 69, 0.4);
            color: #ff9da6;
            padding: 12px 16px;
            border-radius: 14px;
            font-size: 0.9rem;
            font-weight: 600;
            margin-bottom: 22px;
            display: flex;
            align-items: center;
            gap: 10px;
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-8px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Form Inputs */
        .form-group {
            margin-bottom: 10px;
            position: relative;
        }

        .field-label {
            display: block;
            color: #ebd3e2;
            font-size: 0.8rem;
            font-weight: 600;
            margin-bottom: 4px;
        }

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

        .input-icon {
            position: absolute;
            color: #c89327;
            display: flex;
            align-items: center;
            justify-content: center;
            pointer-events: none;
            transition: color 0.3s ease;
            z-index: 2;
        }

        [dir="rtl"] .input-icon {
            right: 16px;
            left: auto;
        }

        [dir="ltr"] .input-icon {
            left: 16px;
            right: auto;
        }

        .form-input {
            width: 100%;
            height: 40px;
            background: rgba(255, 255, 255, 0.05);
            border: 1.5px solid rgba(200, 147, 39, 0.28);
            border-radius: 12px;
            color: #ffffff;
            font-size: 0.9rem;
            font-weight: 500;
            outline: none;
            transition: all 0.25s ease;
        }

        [dir="rtl"] .form-input {
            padding: 0 48px 0 52px;
        }

        [dir="ltr"] .form-input {
            padding: 0 52px 0 48px;
        }

        /* Override Chrome/Edge/Safari Autofill styles (prevent stark white background) */
        .form-input:-webkit-autofill,
        .form-input:-webkit-autofill:hover, 
        .form-input:-webkit-autofill:focus, 
        .form-input:-webkit-autofill:active {
            -webkit-box-shadow: 0 0 0 1000px #240217 inset !important;
            -webkit-text-fill-color: #ffffff !important;
            border-color: rgba(200, 147, 39, 0.45) !important;
            transition: background-color 5000s ease-in-out 0s;
            caret-color: #ffffff !important;
            color: #ffffff !important;
        }

        /* Hide browser default password reveal icons to prevent overlap */
        .form-input::-ms-reveal,
        .form-input::-ms-clear {
            display: none;
        }

        .form-input::placeholder {
            color: rgba(235, 211, 226, 0.38);
            font-weight: 400;
            font-size: 0.9rem;
        }

        .form-input:focus {
            background: rgba(255, 255, 255, 0.08);
            border-color: #dfa938;
            box-shadow: 0 0 0 4px rgba(200, 147, 39, 0.2), 0 6px 20px rgba(0, 0, 0, 0.3);
        }

        .form-input:focus ~ .input-icon {
            color: #f7ee8d;
        }

        /* Interactive Password Eye Toggle Button */
        .toggle-password-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(200, 147, 39, 0.12);
            border: 1px solid rgba(200, 147, 39, 0.32);
            border-radius: 10px;
            color: #dfa938;
            cursor: pointer;
            width: 34px;
            height: 34px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
            z-index: 5;
            user-select: none;
            -webkit-user-select: none;
        }

        [dir="rtl"] .toggle-password-btn {
            left: 8px;
            right: auto;
        }

        [dir="ltr"] .toggle-password-btn {
            right: 8px;
            left: auto;
        }

        .toggle-password-btn:hover {
            background: rgba(200, 147, 39, 0.28);
            border-color: #f7ee8d;
            color: #ffffff;
            box-shadow: 0 0 14px rgba(200, 147, 39, 0.45);
            transform: translateY(-50%) scale(1.06);
        }

        .toggle-password-btn:active {
            transform: translateY(-50%) scale(0.96);
        }

        .toggle-password-btn svg {
            transition: transform 0.2s ease;
        }

        /* Submit Button */
        .btn-submit {
            width: 100%;
            height: 42px;
            background: var(--gold-gradient);
            border: none;
            border-radius: 12px;
            color: #1a0011;
            font-size: 0.94rem;
            font-weight: 800;
            letter-spacing: 0.3px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            box-shadow: 0 8px 25px rgba(200, 147, 39, 0.35);
            transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
            margin-top: 4px;
            position: relative;
            overflow: hidden;
        }

        .btn-submit::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
            transition: 0.5s;
        }

        .btn-submit:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 12px 32px rgba(200, 147, 39, 0.5);
            filter: brightness(1.06);
        }

        .btn-submit:hover:not(:disabled)::after {
            left: 100%;
        }

        .btn-submit:active:not(:disabled) {
            transform: translateY(1px);
            box-shadow: 0 4px 15px rgba(200, 147, 39, 0.3);
        }

        .btn-submit:disabled {
            opacity: 0.8;
            cursor: not-allowed;
        }

        /* Language Switcher Footer */
        .auth-footer {
            margin-top: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .lang-pill-container {
            display: inline-flex;
            align-items: center;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(200, 147, 39, 0.2);
            padding: 4px;
            border-radius: 30px;
            gap: 4px;
        }

        .lang-pill {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 16px;
            border-radius: 20px;
            font-size: 0.82rem;
            font-weight: 700;
            text-decoration: none;
            transition: all 0.25s ease;
            color: rgba(235, 211, 226, 0.7);
        }

        .lang-pill:hover {
            color: #ffffff;
            text-decoration: none;
        }

        .lang-pill.active {
            background: var(--gold-gradient);
            color: #1a0011;
            box-shadow: 0 2px 10px rgba(200, 147, 39, 0.3);
        }

        /* 2FA Special Style */
        .twofa-info {
            background: rgba(200, 147, 39, 0.08);
            border: 1px solid rgba(200, 147, 39, 0.25);
            border-radius: 14px;
            padding: 14px;
            color: #ebd3e2;
            font-size: 0.9rem;
            margin-bottom: 20px;
            text-align: center;
        }

        .twofa-info i {
            font-size: 1.5rem;
            color: #dfa938;
            margin-bottom: 8px;
            display: block;
        }

        .twofa-input {
            text-align: center;
            letter-spacing: 6px;
            font-size: 1.3rem;
            font-weight: 700;
        }

        /* Responsive */
        @media (max-width: 480px) {
            .login-card {
                padding: 30px 20px 24px 20px;
                border-radius: 22px;
            }
            .logo-frame {
                width: 82px;
                height: 82px;
            }
            .brand-name {
                font-size: 1.2rem;
            }
            .page-title {
                font-size: 1.35rem;
            }
            .page-subtitle {
                font-size: 0.82rem;
            }
        }

        @media (max-height: 660px) {
            body {
                padding: 8px 14px;
            }
            .login-card {
                padding: 14px 22px 12px 22px;
            }
            .logo-frame {
                width: 48px;
                height: 48px;
                margin-bottom: 4px;
            }
            .brand-header {
                margin-bottom: 6px;
            }
            .luxury-divider {
                margin: 6px 0 8px 0;
            }
            .form-group {
                margin-bottom: 8px;
            }
            .form-input {
                height: 38px;
            }
            .btn-submit {
                height: 40px;
            }
            .auth-footer {
                margin-top: 8px;
            }
        }
