/* Language switcher and right-to-left layout for the Arabic locale. */

.language-selector {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    padding: 16px;
    background: var(--bg-input);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}
.lang-btn {
    padding: 12px 24px;
    font-size: 1em;
    font-weight: 600;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.lang-btn:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}
.lang-btn.active {
    background: var(--gradient-primary);
    border-color: var(--accent-primary);
    color: white;
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}
[dir="rtl"] .auth-screen {
    text-align: center;
}
[dir="rtl"] .auth-input {
    text-align: center;
    direction: ltr; /* Keep code input LTR */
}
[dir="rtl"] .options {
    text-align: center;
}
[dir="rtl"] .question {
    text-align: center;
}
[dir="rtl"] .branding {
    text-align: center;
}

@media (max-width: 768px) {
    .language-selector {
        padding: 12px;
        gap: 10px;
    }
    .lang-btn {
        padding: 10px 18px;
        font-size: 0.95em;
    }
}
