/* Modern Two-Panel Auth Design */

:root {
    /* Colors */
    --bg: #0a0818;
    --panel: rgba(255, 255, 255, 0.02);
    --panel-light: rgba(255, 255, 255, 0.02);
    --ink: #ebeaf4;
    --ink-2: rgba(220, 216, 240, 0.88);
    --ink-3: rgba(176, 170, 204, 0.62);
    --brand: #5b43ea;
    --brand-hover: #4c3bd8;
    --accent: rgba(91, 67, 234, 0.2);
    --border: rgba(91, 67, 234, 0.2);
    --active-border: var(--brand);
    --success: #26c281;
    --error: #f59e0b;
    
    /* Typography */
    --font-sans: "Sora", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 10px;
    --radius: 12px;
    --radius-lg: 14px;
    --radius-xl: 16px;
    
    /* Transitions */
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
:root[dir="rtl"], html[dir="rtl"], body[dir="rtl"] {
  --font-sans: "Lahzeh", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}


* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    overflow-x: hidden;
}

body {
    background: var(--bg);
    color: var(--ink);
}

/* Two Panel Layout */
.auth-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    position: relative;
}

/* Left Panel - Minimal Branding */
.auth-left-panel {
    background: var(--bg);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--space-2xl);
    min-height: 100vh;
    text-align: center;
}



/* Back Button */
.back-to-store {
    position: absolute;
    top: var(--space-xl);
    right: var(--space-xl);
    z-index: 3;
}

/* Hide mobile back button on desktop */
.back-to-store.mobile-only {
    display: none;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--accent);
    border-radius: 50%;
    color: var(--ink-2);
    text-decoration: none;
    transition: all var(--transition);
    backdrop-filter: blur(10px);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--active-border);
    color: var(--ink);
}

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


/* Brand Content */
.brand-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
    max-width: 400px;
}

/* Brand Logo */
.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}


/* Brand Message */
.brand-message {
    text-align: center;
}

.brand-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.1;
    margin: 0 0 var(--space-md) 0;
    letter-spacing: -0.02em;
}

.brand-subtitle {
    font-size: 1.2rem;
    color: var(--ink-2);
    line-height: 1.4;
    margin: 0;
    font-weight: 400;
    max-width: 320px;
    margin: 0 auto;
}




/* Right Panel - Auth Form */
.auth-right-panel {
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
    position: relative;
}

.auth-form-container {
    width: 100%;
    max-width: 400px;
}

/* Auth Header */
.auth-header {
    margin-bottom: var(--space-xl);
}

.auth-steps {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: var(--space-md);
    font-size: 0.78rem;
    color: var(--ink-3);
}

.auth-step {
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.auth-step.is-active {
    color: var(--ink);
    border-color: var(--accent);
    background: rgba(91, 67, 234, 0.08);
}

.auth-step.is-done {
    color: var(--success);
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 var(--space-sm) 0;
    line-height: 1.2;
}

.auth-subtitle {
    color: var(--ink-2);
    margin: 0;
    font-size: 0.95rem;
}

.auth-link {
    color: var(--brand);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
}

.auth-link:hover {
    color: var(--brand-hover);
    text-decoration: underline;
}

/* Auth Forms */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}


/* Form Groups */
.form-group {
    position: relative;
    margin-bottom: var(--space-lg);
}

/* OTP resend row — space below the code input */
.auth-helper-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.75rem;
    margin: var(--space-sm) 0 0;
    padding-top: 0.125rem;
    min-height: 1.25rem;
}

.auth-helper-text {
    color: var(--ink-3);
    font-size: 0.85rem;
    line-height: 1.45;
}

#otpGroup .form-input {
    margin-bottom: 0;
}

/* OTP — visual 6 boxes + hidden native input (Web OTP / autofill) */
.otp-entry {
    position: relative;
}

.otp-box-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.45rem;
    direction: ltr;
}

.otp-box {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.02);
    color: var(--ink);
    font-size: 1.25rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.otp-box.filled {
    border-color: rgba(91, 67, 234, 0.45);
}

.otp-box.active {
    border-color: var(--active-border);
    box-shadow: 0 0 0 1px rgba(91, 67, 234, 0.25);
}

.otp-input-native {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 48px;
    border: 0;
    background: transparent;
    /* opacity:0 breaks iOS SMS QuickType + Web OTP; hide typed digits only */
    color: transparent;
    -webkit-text-fill-color: transparent;
    caret-color: var(--active-border);
    font-size: 16px;
    letter-spacing: 0.42em;
    text-indent: 0.35em;
    font-variant-numeric: tabular-nums;
    z-index: 2;
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

/* Native focus ring spans the full overlay on mobile — use .otp-box.active only */
.otp-input-native:focus,
.otp-input-native:focus-visible {
    outline: none;
    box-shadow: none;
    border: 0;
}

.otp-entry:focus-within {
    outline: none;
}

@keyframes otp-autofill-start {
    from { opacity: 1; }
    to { opacity: 1; }
}

.otp-input-native:-webkit-autofill {
    animation-name: otp-autofill-start;
    animation-duration: 0.01s;
}

.auth-otp-trust {
    margin-top: var(--space-sm);
}

.auth-phone-entry {
    margin: -0.75rem 0 var(--space-lg);
    text-align: center;
    font-size: 0.9rem;
}

.auth-trust {
    list-style: none;
    margin: 0 0 var(--space-md);
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    font-size: 0.78rem;
    color: var(--ink-3);
}

.auth-trust li::before {
    content: '✓';
    color: var(--success);
    margin-inline-end: 0.25rem;
}

.auth-help-row {
    margin: 0 0 var(--space-lg);
    text-align: center;
    font-size: 0.85rem;
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle {
    position: absolute;
    right: var(--space-sm);
    background: none;
    border: none;
    color: var(--ink-3);
    cursor: pointer;
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    z-index: 2;
}

.password-toggle:hover {
    color: var(--ink-2);
    background: rgba(255, 255, 255, 0.04);
}

.password-toggle svg {
    width: 18px;
    height: 18px;
    transition: all var(--transition);
}

.password-toggle:focus {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.password-input-wrapper .form-input {
    padding-right: 48px;
}

/* Form Row for side-by-side inputs */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: var(--space-md);
    color: var(--ink);
    font-size: 0.95rem;
    font-family: var(--font-sans);
    transition: all var(--transition);
    height: 48px;
}

.form-input:focus {
    outline: none;
    border-color: var(--active-border);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 0 1px rgba(91, 67, 234, 0.2);
}

.form-input::placeholder {
    color: var(--ink-3);
    font-size: 0.95rem;
}


/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.checkbox-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--ink-2);
    line-height: 1;
}

.checkbox-wrapper input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.checkbox-custom {
    box-sizing: border-box;
    width: 18px;
    height: 18px;
    border: 2px solid var(--accent);
    border-radius: 4px;
    background: transparent;
    position: relative;
    flex-shrink: 0;
    transition: border-color var(--transition), background var(--transition);
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--brand);
    border-color: var(--brand);
}

/* Drawn tick — centers reliably in the 18×18 box (Unicode ✓ was off-center without transform) */
.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4px;
    height: 8px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -58%) rotate(45deg);
    transform-origin: center;
}

.checkbox-wrapper:hover .checkbox-custom {
    border-color: var(--brand);
}

.auth-terms-row {
    margin: 0 0 var(--space-lg);
}

.auth-terms-label {
    align-items: flex-start;
    max-width: 100%;
}

.auth-terms-label .checkbox-label {
    line-height: 1.55;
    font-size: 0.8125rem;
    color: var(--ink-2);
    white-space: normal;
}

.auth-terms-row.is-invalid .checkbox-custom {
    border-color: var(--error);
}

.terms-link {
    color: var(--brand);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
}

.terms-link:hover {
    color: var(--brand-hover);
    text-decoration: underline;
}

.forgot-password {
    color: var(--brand);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
}

.forgot-password:hover {
    color: var(--brand-hover);
    text-decoration: underline;
}

/* Auth Button */
.auth-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    background: var(--brand);
    border: none;
    border-radius: var(--radius-lg);
    padding: 0.75rem var(--space-lg);
    min-height: 48px;
    height: auto;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
    transition: background var(--transition), box-shadow var(--transition);
    font-family: var(--font-sans);
    margin-bottom: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.auth-btn > span {
    display: inline-block;
    line-height: 1.35;
}

html[dir="rtl"] .auth-btn,
html[dir="rtl"] .auth-btn > span {
    line-height: 1.4;
}

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

.auth-btn:hover {
    background: var(--brand-hover);
}

.auth-btn:hover::before {
    left: 100%;
}

.auth-btn.otp-manual,
.auth-btn.ghost {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--ink-2);
    margin-bottom: var(--space-md);
}

.auth-btn.otp-manual:hover,
.auth-btn.ghost:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--active-border);
    color: var(--ink);
}

.auth-btn.ghost {
    margin-bottom: var(--space-xl);
}

.auth-btn.otp-manual {
    margin-top: calc(-1 * var(--space-md));
    font-size: 0.85rem;
    min-height: 42px;
}

#phoneVerifyOtpBtn.is-visible {
    display: inline-flex !important;
}


/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: var(--space-xl) 0;
    gap: var(--space-md);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
    color: var(--ink-3);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Social Auth */
.social-auth {
    display: flex;
    justify-content: center;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: var(--space-md);
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    height: 48px;
    font-family: var(--font-sans);
    width: 100%;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--active-border);
}

.social-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.social-btn.google svg {
    color: #4285f4;
}

.social-btn.apple svg {
    color: var(--ink);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    width: 100%;
    max-width: 420px;
    margin: var(--space-md);
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-xl) var(--space-xl) var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--ink-2);
    cursor: pointer;
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--ink);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-body {
    padding: 0 var(--space-xl) var(--space-xl);
}

.modal-description {
    color: var(--ink-2);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 var(--space-lg) 0;
}



/* Mobile Responsive */
@media (max-width: 768px) {
    .auth-layout {
        grid-template-columns: 1fr;
        min-height: 100vh;
    }

    .auth-left-panel {
        display: none; /* Hide slider on mobile */
    }
    
    /* Show a simplified version on tablet */
    @media (min-width: 481px) and (max-width: 768px) {
        .auth-left-panel {
            display: flex;
            min-height: 200px;
            padding: var(--space-lg);
        }
        
    .brand-title {
        font-size: 2.2rem;
    }
    
    .brand-subtitle {
        font-size: 1.1rem;
    }
    
    .logo-img {
        width: 56px;
        height: 56px;
    }
    }
    
    /* Show back button on mobile */
    .back-to-store.mobile-only {
        display: block !important;
        position: absolute;
        top: var(--space-xl);
        right: var(--space-xl);
        z-index: 10;
    }

    .auth-right-panel {
        padding: var(--space-xl);
        background: var(--bg);
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .back-to-store {
        position: fixed;
        top: var(--space-xl);
        right: var(--space-xl);
        z-index: 10;
    }
    
    .back-to-store .back-btn {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        color: var(--ink-2);
        text-decoration: none;
        transition: all var(--transition);
        backdrop-filter: blur(10px);
    }
    
    .back-to-store .back-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
        color: var(--ink);
    }
    
    .back-to-store .back-btn svg {
        width: 18px;
        height: 18px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .social-auth {
        justify-content: center;
    }
    
    .social-btn {
        width: 100%;
    }
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .auth-left-panel {
        padding: var(--space-xl);
    }
    
    .brand-title {
        font-size: 2.5rem;
    }
    
    .brand-subtitle {
        font-size: 1.1rem;
    }
    
    .logo-img {
        width: 60px;
        height: 60px;
    }
    
}

@media (max-width: 768px) {
    .auth-left-panel {
        display: none;
    }
}

@media (max-width: 480px) {
    .auth-left-panel,
    .auth-right-panel {
        padding: var(--space-lg);
    }

    .brand-title {
        font-size: 1.5rem;
    }

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

    .back-btn {
        padding: var(--space-sm);
        font-size: 0.85rem;
    }

    .back-btn span {
        display: inline;
    }
}

/* Large Desktop */
@media (min-width: 1440px) {
    .auth-left-panel {
        padding: var(--space-2xl) calc(var(--space-2xl) + 2rem);
    }
    
    .brand-title {
        font-size: 3.5rem;
    }
    
    .brand-subtitle {
        font-size: 1.3rem;
    }
    
    .logo-img {
        width: 72px;
        height: 72px;
    }
    
}

/* Loading States */
.auth-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-btn.loading svg {
    flex-shrink: 0;
    display: block;
}

.form-feedback {
    min-height: 18px;
    margin-top: var(--space-sm);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink-2);
    transition: color var(--transition);
}

.form-feedback.success {
    color: var(--success);
}

.form-feedback.error {
    color: var(--error);
}




/* Error States */
.form-input.error {
    border-color: var(--error);
    background: rgba(239, 68, 68, 0.05);
}

.form-input.error:focus {
    border-color: var(--error);
}

.error-message {
    color: var(--error);
    font-size: 0.8rem;
    margin-top: var(--space-xs);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 500;
}


.error-message svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* Success States */
.form-input.success {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.05);
}

.form-input.success:focus {
    border-color: var(--success);
}

/* Focus States for Accessibility */
.form-input:focus,
.social-btn:focus {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* Checkbox row: no outer ring on focus (avoid boxing the whole label row) */
.checkbox-wrapper:focus-within {
    outline: none;
}

.checkbox-wrapper input:focus-visible + .checkbox-custom {
    box-shadow: 0 0 0 2px rgba(91, 67, 234, 0.45);
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Notification styles are now in notification.css */

/* Language Switcher - Minimal Design */
.auth-language-switcher {
    position: fixed;
    bottom: var(--space-md);
    right: var(--space-md);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.auth-language-select {
    background: rgba(91, 67, 234, 0.08);
    border: 1px solid rgba(91, 67, 234, 0.15);
    border-radius: var(--radius);
    color: var(--ink-2);
    padding: 0.375rem 0.75rem;
    padding-right: 1.75rem;
    font-size: 0.75rem;
    font-family: var(--font-sans);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%23808080' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    min-width: auto;
    max-width: 110px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.auth-language-select:hover {
    border-color: rgba(91, 67, 234, 0.3);
    background-color: rgba(91, 67, 234, 0.12);
    color: var(--ink);
    transform: translateY(-1px);
}

.auth-language-select:focus {
    border-color: var(--brand);
    background-color: rgba(91, 67, 234, 0.15);
    box-shadow: 0 0 0 2px rgba(91, 67, 234, 0.1);
}

/* RTL Support for Language Switcher */
html[dir="rtl"] .auth-language-switcher {
    right: auto;
    left: var(--space-md);
}

html[dir="rtl"] .auth-language-select {
    background-position: left 0.5rem center;
    padding-right: 0.75rem;
    padding-left: 1.75rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .auth-language-switcher {
        bottom: var(--space-sm);
        right: var(--space-sm);
    }
    
    html[dir="rtl"] .auth-language-switcher {
        left: var(--space-sm);
    }
    
    .auth-language-select {
        font-size: 0.6875rem;
        padding: 0.3125rem 0.625rem;
        padding-right: 1.5rem;
        max-width: 95px;
    }
    
    html[dir="rtl"] .auth-language-select {
        padding-left: 1.5rem;
        padding-right: 0.625rem;
    }
}

/* RTL Support */