/*! ══════════════════════════════════════════════════════════════════════════════
 *  PREMIUM AUTH v1.0 — Iraq CRM Split-Screen Login
 *  
 *  Premium split-screen authentication page with:
 *  - Gradient brand panel with glassmorphism stats cards
 *  - Animated geometric decorations
 *  - Modern form inputs with icon labels
 *  - Full RTL support
 *  - Responsive (stacks on mobile)
 * ══════════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════════
   1. RESET & BASE
   ═══════════════════════════════════════════════════════════════════════════════ */
.premium-auth-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    background: #f8f9fc;
}

html[dir="rtl"] .premium-auth-body {
    font-family: 'Cairo', -apple-system, sans-serif;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   2. SPLIT-SCREEN WRAPPER
   ═══════════════════════════════════════════════════════════════════════════════ */
.premium-auth-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   3. LEFT — BRAND PANEL
   ═══════════════════════════════════════════════════════════════════════════════ */
.auth-brand-panel {
    position: relative;
    width: 50%;
    min-height: 100vh;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 30%, #4c1d95 60%, #6d28d9 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px;
    overflow: hidden;
}

/* Overlay noise texture effect */
.auth-brand-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
}


/* ── Animated Geometric Shapes ────────────────────────────────────────── */
.auth-geo {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    pointer-events: none;
}

.auth-geo-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    top: -100px;
    right: -80px;
    animation: auth-float-1 12s ease-in-out infinite;
}

.auth-geo-2 {
    width: 250px;
    height: 250px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    bottom: 10%;
    left: -50px;
    animation: auth-float-2 10s ease-in-out infinite;
}

.auth-geo-3 {
    width: 120px;
    height: 120px;
    background: rgba(167, 139, 250, 0.15);
    top: 30%;
    left: 15%;
    border-radius: 24px;
    transform: rotate(45deg);
    animation: auth-float-3 8s ease-in-out infinite;
    opacity: 0.12;
}

.auth-geo-4 {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    bottom: 25%;
    right: 15%;
    border-radius: 16px;
    transform: rotate(15deg);
    animation: auth-float-4 9s ease-in-out infinite;
    opacity: 0.15;
}

@keyframes auth-float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 30px) scale(1.05); }
}

@keyframes auth-float-2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(20px, -20px) rotate(180deg); }
}

@keyframes auth-float-3 {
    0%, 100% { transform: rotate(45deg) translate(0, 0); }
    50% { transform: rotate(55deg) translate(10px, -15px); }
}

@keyframes auth-float-4 {
    0%, 100% { transform: rotate(15deg) translate(0, 0); }
    50% { transform: rotate(25deg) translate(-10px, 10px); }
}


/* ── Brand Content ────────────────────────────────────────────────────── */
.auth-brand-content {
    position: relative;
    z-index: 2;
    max-width: 480px;
    width: 100%;
    text-align: center;
}

.auth-brand-logo {
    margin-bottom: 40px;
}

.auth-logo-img {
    max-width: 180px;
    max-height: 64px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.auth-brand-hero {
    margin-bottom: 48px;
}

.auth-hero-title {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.auth-hero-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    font-weight: 400;
    margin: 0;
}


/* ── Glassmorphism Stats Cards ────────────────────────────────────────── */
.auth-glass-cards {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.auth-glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 140px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-glass-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.2);
}

.glass-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #c4b5fd;
    flex-shrink: 0;
}

.glass-card-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

html[dir="rtl"] .glass-card-info {
    text-align: right;
}

.glass-card-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.glass-card-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Staggered entrance */
.auth-glass-1 { animation: auth-card-in 0.5s ease-out 0.2s both; }
.auth-glass-2 { animation: auth-card-in 0.5s ease-out 0.35s both; }
.auth-glass-3 { animation: auth-card-in 0.5s ease-out 0.5s both; }

@keyframes auth-card-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ── Brand Footer ─────────────────────────────────────────────────────── */
.auth-brand-footer {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 2;
}

.auth-brand-footer p {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.75rem;
    margin: 0;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   4. RIGHT — FORM PANEL
   ═══════════════════════════════════════════════════════════════════════════════ */
.auth-form-panel {
    width: 50%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    position: relative;
}

/* ── Top Bar (Language) ───────────────────────────────────────────────── */
.auth-form-topbar {
    display: flex;
    justify-content: flex-end;
    padding: 20px 32px;
    min-height: 60px;
}

html[dir="rtl"] .auth-form-topbar {
    justify-content: flex-start;
}

.auth-form-topbar .lang-dropdown-only-desk {
    list-style: none;
    margin: 0;
    padding: 0;
}

.auth-form-topbar .drp-language .btn {
    background: #f4f4f8;
    border: 1px solid #e8e8ef;
    border-radius: 10px;
    padding: 8px 18px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s ease;
}

.auth-form-topbar .drp-language .btn:hover {
    background: #eeeef4;
    border-color: #d1d1de;
}

.auth-form-topbar .dropdown-menu {
    border-radius: 12px;
    box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 6px;
}

.auth-form-topbar .dropdown-item {
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.8125rem;
    transition: background 0.15s ease;
}

.auth-form-topbar .dropdown-item:hover {
    background: #f4f4f8;
}


/* ── Form Container ───────────────────────────────────────────────────── */
.auth-form-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 32px;
}


/* ── Form Card ────────────────────────────────────────────────────────── */
.auth-form-card {
    width: 100%;
    max-width: 420px;
    animation: auth-form-in 0.4s ease-out;
}

@keyframes auth-form-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ── Form Header ──────────────────────────────────────────────────────── */
.auth-form-header {
    text-align: center;
    margin-bottom: 36px;
}

.auth-welcome-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: #6d28d9;
}

.auth-form-title {
    font-size: 1.625rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.auth-form-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 400;
    margin: 0;
    line-height: 1.5;
}


/* ── Alert ─────────────────────────────────────────────────────────────── */
.auth-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.auth-alert-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.auth-alert i {
    font-size: 1.1rem;
    flex-shrink: 0;
}


/* ── Form Fields ──────────────────────────────────────────────────────── */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-field-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 6px;
}

.auth-field-label i {
    font-size: 0.9rem;
    color: #9ca3af;
}

.auth-forgot-link {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6d28d9 !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.auth-forgot-link:hover {
    color: #5b21b6 !important;
    text-decoration: underline !important;
}


/* ── Input Styling ────────────────────────────────────────────────────── */
.auth-input-wrapper {
    position: relative;
}

.auth-input,
.auth-form .form-control,
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 12px 16px !important;
    font-size: 0.875rem !important;
    font-weight: 400;
    color: #111827;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 12px !important;
    outline: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    box-sizing: border-box;
}

.auth-input:hover,
.auth-form .form-control:hover,
.auth-form input[type="text"]:hover,
.auth-form input[type="email"]:hover,
.auth-form input[type="password"]:hover {
    border-color: #d1d5db !important;
    background: #f3f4f6;
}

.auth-input:focus,
.auth-form .form-control:focus,
.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus {
    border-color: #8b5cf6 !important;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12) !important;
}

.auth-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}


/* ── Field Error ──────────────────────────────────────────────────────── */
.auth-field-error {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: #dc2626;
    font-weight: 500;
    padding-top: 2px;
}

.auth-field-error i {
    font-size: 0.85rem;
}


/* ── Submit Button ────────────────────────────────────────────────────── */
.auth-submit-group {
    margin-top: 8px;
}

.auth-submit-btn {
    width: 100%;
    padding: 13px 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 50%, #8b5cf6 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.auth-submit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -4px rgba(109, 40, 217, 0.35);
}

.auth-submit-btn:hover::before {
    opacity: 1;
}

.auth-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px -2px rgba(109, 40, 217, 0.3);
}

.auth-submit-btn .auth-btn-text {
    position: relative;
    z-index: 1;
}

.auth-submit-btn i {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    transition: transform 0.25s ease;
}

.auth-submit-btn:hover i {
    transform: translateX(3px);
}

html[dir="rtl"] .auth-submit-btn:hover i {
    transform: translateX(-3px);
}


/* ── Register Link ────────────────────────────────────────────────────── */
.auth-register-link {
    text-align: center;
    padding-top: 8px;
    font-size: 0.8125rem;
    color: #6b7280;
}

.auth-register-link a {
    color: #6d28d9 !important;
    font-weight: 600;
    text-decoration: none !important;
    margin-left: 4px;
    transition: color 0.2s ease;
}

html[dir="rtl"] .auth-register-link a {
    margin-left: 0;
    margin-right: 4px;
}

.auth-register-link a:hover {
    color: #5b21b6 !important;
    text-decoration: underline !important;
}


/* ── Form Footer ──────────────────────────────────────────────────────── */
.auth-form-footer {
    padding: 16px 32px;
    text-align: center;
    font-size: 0.75rem;
    color: #9ca3af;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   5. DARK MODE SUPPORT
   ═══════════════════════════════════════════════════════════════════════════════ */
body.dark-mode .auth-form-panel,
.dark-mode .auth-form-panel {
    background: #1a1a2e;
}

.dark-mode .auth-form-title {
    color: #e5e7eb;
}

.dark-mode .auth-form-subtitle {
    color: #9ca3af;
}

.dark-mode .auth-input,
.dark-mode .auth-form .form-control {
    background: #262640;
    border-color: #374151 !important;
    color: #e5e7eb;
}

.dark-mode .auth-input:focus,
.dark-mode .auth-form .form-control:focus {
    background: #1f1f38;
    border-color: #8b5cf6 !important;
}

.dark-mode .auth-field-label {
    color: #d1d5db;
}

.dark-mode .auth-welcome-icon {
    background: linear-gradient(135deg, #312e81 0%, #3b3680 100%);
}

.dark-mode .auth-form-topbar .drp-language .btn {
    background: #262640;
    border-color: #374151;
    color: #d1d5db;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   6. THEME COLOR INTEGRATION
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Theme 1 - Purple/Pink gradient */
body.theme-1 .auth-brand-panel {
    background: linear-gradient(135deg, #51459d 0%, #7b2d8e 50%, #c04b8a 100%);
}
body.theme-1 .auth-submit-btn {
    background: linear-gradient(135deg, #51459d 0%, #7b2d8e 50%, #a855a0 100%);
}
body.theme-1 .auth-welcome-icon { background: linear-gradient(135deg, #ede5f5 0%, #e0d4f0 100%); color: #51459d; }
body.theme-1 .auth-forgot-link,
body.theme-1 .auth-register-link a { color: #51459d !important; }
body.theme-1 .auth-input:focus,
body.theme-1 .auth-form .form-control:focus { border-color: #51459d !important; box-shadow: 0 0 0 3px rgba(81, 69, 157, 0.12) !important; }
body.theme-1 .glass-card-icon { color: #d8b4fe; }

/* Theme 2 - Blue/Teal */
body.theme-2 .auth-brand-panel {
    background: linear-gradient(135deg, #1f3996 0%, #2d5ca8 50%, #4ebbd3 100%);
}
body.theme-2 .auth-submit-btn {
    background: linear-gradient(135deg, #1f3996 0%, #2d5ca8 50%, #4ebbd3 100%);
}
body.theme-2 .auth-welcome-icon { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); color: #1f3996; }
body.theme-2 .auth-forgot-link,
body.theme-2 .auth-register-link a { color: #1f3996 !important; }
body.theme-2 .auth-input:focus,
body.theme-2 .auth-form .form-control:focus { border-color: #1f3996 !important; box-shadow: 0 0 0 3px rgba(31, 57, 150, 0.12) !important; }
body.theme-2 .glass-card-icon { color: #93c5fd; }

/* Theme 3 - Green (default) */
body.theme-3 .auth-brand-panel {
    background: linear-gradient(135deg, #166534 0%, #15803d 40%, #22c55e 100%);
}
body.theme-3 .auth-submit-btn {
    background: linear-gradient(135deg, #15803d 0%, #22c55e 50%, #4ade80 100%);
}
body.theme-3 .auth-welcome-icon { background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%); color: #15803d; }
body.theme-3 .auth-forgot-link,
body.theme-3 .auth-register-link a { color: #15803d !important; }
body.theme-3 .auth-input:focus,
body.theme-3 .auth-form .form-control:focus { border-color: #22c55e !important; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12) !important; }
body.theme-3 .glass-card-icon { color: #86efac; }

/* Theme 4 - Indigo/Purple */
body.theme-4 .auth-brand-panel {
    background: linear-gradient(135deg, #312e81 0%, #4338ca 50%, #6366f1 100%);
}
body.theme-4 .auth-submit-btn {
    background: linear-gradient(135deg, #4338ca 0%, #6366f1 50%, #818cf8 100%);
}
body.theme-4 .auth-welcome-icon { background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%); color: #4338ca; }
body.theme-4 .auth-forgot-link,
body.theme-4 .auth-register-link a { color: #4338ca !important; }
body.theme-4 .auth-input:focus,
body.theme-4 .auth-form .form-control:focus { border-color: #6366f1 !important; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12) !important; }
body.theme-4 .glass-card-icon { color: #a5b4fc; }

/* Custom color support */
body.custom-color .auth-brand-panel {
    background: linear-gradient(135deg, var(--color-customColor) 0%, color-mix(in srgb, var(--color-customColor), #000 20%) 100%);
}
body.custom-color .auth-submit-btn {
    background: linear-gradient(135deg, var(--color-customColor) 0%, color-mix(in srgb, var(--color-customColor), #fff 20%) 100%);
}
body.custom-color .auth-welcome-icon {
    color: var(--color-customColor);
}
body.custom-color .auth-forgot-link,
body.custom-color .auth-register-link a {
    color: var(--color-customColor) !important;
}
body.custom-color .auth-input:focus,
body.custom-color .auth-form .form-control:focus {
    border-color: var(--color-customColor) !important;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   7. RTL SUPPORT
   ═══════════════════════════════════════════════════════════════════════════════ */
html[dir="rtl"] .auth-brand-panel {
    order: 2;
}

html[dir="rtl"] .auth-form-panel {
    order: 1;
}

html[dir="rtl"] .auth-hero-title,
html[dir="rtl"] .auth-hero-desc,
html[dir="rtl"] .auth-form-title,
html[dir="rtl"] .auth-form-subtitle {
    font-family: 'Cairo', -apple-system, sans-serif;
}

html[dir="rtl"] .auth-field-label,
html[dir="rtl"] .auth-input,
html[dir="rtl"] .auth-submit-btn,
html[dir="rtl"] .auth-forgot-link,
html[dir="rtl"] .auth-register-link {
    font-family: 'Cairo', -apple-system, sans-serif;
}

html[dir="rtl"] .auth-input {
    text-align: right;
}

html[dir="rtl"] .auth-field-label-row {
    flex-direction: row-reverse;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   8. RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
    .auth-brand-panel {
        padding: 36px 32px;
    }

    .auth-hero-title {
        font-size: 1.625rem;
    }

    .auth-glass-cards {
        gap: 10px;
    }

    .auth-glass-card {
        padding: 14px 16px;
        min-width: 120px;
    }
}

/* Mobile — Stack vertically */
@media (max-width: 768px) {
    .premium-auth-wrapper {
        flex-direction: column;
    }

    .auth-brand-panel {
        width: 100%;
        min-height: auto;
        padding: 40px 24px 32px;
    }

    .auth-form-panel {
        width: 100%;
        min-height: auto;
    }

    html[dir="rtl"] .auth-brand-panel {
        order: 1;
    }

    html[dir="rtl"] .auth-form-panel {
        order: 2;
    }

    .auth-hero-title {
        font-size: 1.375rem;
    }

    .auth-hero-desc {
        font-size: 0.875rem;
    }

    .auth-glass-cards {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .auth-glass-card {
        width: 100%;
        max-width: 260px;
    }

    .auth-form-container {
        padding: 32px 24px;
    }

    .auth-form-topbar {
        padding: 16px 24px;
    }

    .auth-brand-footer {
        display: none;
    }

    /* Hide geo shapes on mobile */
    .auth-geo {
        display: none;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .auth-brand-panel {
        padding: 32px 20px 24px;
    }

    .auth-form-container {
        padding: 24px 20px;
    }

    .auth-hero-title {
        font-size: 1.25rem;
    }

    .auth-form-title {
        font-size: 1.375rem;
    }

    .auth-glass-card {
        min-width: auto;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════════
   9. OVERRIDE OLD AUTH STYLES
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Neutralize old custom-login styles that may conflict */
.premium-auth-body .custom-login {
    display: none !important;
}

.premium-auth-body .login-bg-img,
.premium-auth-body .login-bg-1,
.premium-auth-body .login-bg-2,
.premium-auth-body .bg-login {
    display: none !important;
}

/* Remove card defaults from premium-reskin.css on auth pages */
.premium-auth-body .card {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    animation: none !important;
    margin-bottom: 0 !important;
}

.premium-auth-body .card:hover {
    box-shadow: none !important;
}

.premium-auth-body .card .card-body {
    padding: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   10. BACKWARD COMPAT — Register & Forgot Password Pages
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Style old .card-body content inside the new layout */
.auth-form-container > .card-body,
.auth-form-container .card > .card-body {
    max-width: 420px;
    width: 100%;
    padding: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    animation: auth-form-in 0.4s ease-out;
}

/* Old-style headings */
.auth-form-container .card-body h2,
.auth-form-container .card-body .f-w-600 {
    font-size: 1.625rem !important;
    font-weight: 800 !important;
    color: #111827;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 8px !important;
    text-align: center;
}

/* Old-style form inputs inside auth pages */
.auth-form-container .form-control {
    padding: 12px 16px !important;
    font-size: 0.875rem !important;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 12px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-form-container .form-control:hover {
    border-color: #d1d5db !important;
    background: #f3f4f6;
}

.auth-form-container .form-control:focus {
    border-color: #8b5cf6 !important;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12) !important;
}

/* Old-style form labels */
.auth-form-container .form-label {
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    color: #374151;
}

/* Old-style buttons */
.auth-form-container .btn-primary,
.auth-form-container .btn-block {
    padding: 13px 24px !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 50%, #8b5cf6 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.01em;
}

.auth-form-container .btn-primary:hover,
.auth-form-container .btn-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -4px rgba(109, 40, 217, 0.35) !important;
}

/* Theme button compat */
body.theme-1 .auth-form-container .btn-primary { background: linear-gradient(135deg, #51459d 0%, #7b2d8e 50%, #a855a0 100%) !important; }
body.theme-2 .auth-form-container .btn-primary { background: linear-gradient(135deg, #1f3996 0%, #2d5ca8 50%, #4ebbd3 100%) !important; }
body.theme-3 .auth-form-container .btn-primary { background: linear-gradient(135deg, #15803d 0%, #22c55e 50%, #4ade80 100%) !important; }
body.theme-4 .auth-form-container .btn-primary { background: linear-gradient(135deg, #4338ca 0%, #6366f1 50%, #818cf8 100%) !important; }
body.custom-color .auth-form-container .btn-primary { background: linear-gradient(135deg, var(--color-customColor) 0%, color-mix(in srgb, var(--color-customColor), #fff 20%) 100%) !important; }

/* Old-style links */
.auth-form-container .text-primary {
    color: #6d28d9 !important;
    font-weight: 600;
    text-decoration: none;
}

body.theme-1 .auth-form-container .text-primary { color: #51459d !important; }
body.theme-2 .auth-form-container .text-primary { color: #1f3996 !important; }
body.theme-3 .auth-form-container .text-primary { color: #15803d !important; }
body.theme-4 .auth-form-container .text-primary { color: #4338ca !important; }

.auth-form-container .text-primary:hover {
    text-decoration: underline !important;
}

/* Old-style alerts */
.auth-form-container .alert-primary {
    background: #ede9fe;
    color: #5b21b6;
    border: 1px solid #c4b5fd;
    border-radius: 12px;
    font-size: 0.8125rem;
}

.auth-form-container .alert-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 12px;
    font-size: 0.8125rem;
}

/* Checkbox styling */
.auth-form-container .form-check-label {
    font-size: 0.8125rem;
    color: #6b7280;
}

.auth-form-container .form-check-input:checked {
    background-color: #6d28d9;
    border-color: #6d28d9;
}

body.theme-1 .auth-form-container .form-check-input:checked { background-color: #51459d; border-color: #51459d; }
body.theme-2 .auth-form-container .form-check-input:checked { background-color: #1f3996; border-color: #1f3996; }
body.theme-3 .auth-form-container .form-check-input:checked { background-color: #15803d; border-color: #15803d; }
body.theme-4 .auth-form-container .form-check-input:checked { background-color: #4338ca; border-color: #4338ca; }
