/* ═══════════════════════════════════════════════════════
   Auth Pages — custom-auth.css
   Covers: login, register, forgot-password, otp, reset
   ═══════════════════════════════════════════════════════ */

/* ── Layout ─────────────────────────────────────────── */
.auth-left-panel {
    background: linear-gradient(135deg, #f8fafc 0%, #e9ecef 100%);
    position: relative;
}

.auth-left-panel h3 {
    font-size: 2.5rem;
}

.auth-left-panel .auth-description {
    font-size: 1.2rem;
    line-height: 2;
    color: #6b7280;
}

.auth-hero-image {
    max-height: 500px;
}

.auth-right-panel {
    background-color: #f8f9fa;
}

/* ── Card ────────────────────────────────────────────── */
.auth-card {
    max-width: 600px;
    background: #ffffff;
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

/* ── Logo ────────────────────────────────────────────── */
.auth-logo {
    max-height: 80px;
}

/* ── Headings ────────────────────────────────────────── */
.auth-heading {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.8rem;
}

.auth-subtext {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.5;
}

/* ── Labels ──────────────────────────────────────────── */
.auth-label {
    color: #374151;
    font-weight: 500;
    font-size: 0.95rem;
}

/* ── Country selector ────────────────────────────────── */
.auth-phone-group {
    direction: ltr;
}

.auth-country-btn {
    background-color: #f1f5f9;
    border-color: #d1d5db;
    color: #6b7280;
    font-weight: 500;
    direction: ltr;
    min-width: 100px;
    border-radius: 10px 0 0 10px;
}

.auth-dropdown-menu {
    max-height: 300px;
    overflow-y: auto;
}

/* ── Inputs ──────────────────────────────────────────── */
.auth-input {
    border-color: #d1d5db;
    padding: 12px 16px;
    font-size: 15px;
    background-color: #ffffff;
}

.auth-input-phone {
    border-color: #d1d5db;
    padding: 12px 16px;
    font-size: 15px;
    background-color: #ffffff;
    direction: ltr;
    border-radius: 0 10px 10px 0;
}

.auth-input-password {
    border-color: #d1d5db;
    padding: 14px 16px;
    font-size: 15px;
    direction: ltr;
    text-align: left;
    background-color: #ffffff;
    border-radius: 12px;
}

.auth-input-otp {
    border-color: #d1d5db;
    padding: 14px 16px;
    font-size: 1rem;
    letter-spacing: 0.4rem;
    text-align: center;
    direction: ltr;
    border-radius: 12px;
}

/* ── Buttons ─────────────────────────────────────────── */
.auth-btn-primary {
    font-size: 15px;
    font-weight: 600;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.auth-btn-secondary {
    font-size: 15px;
    font-weight: 500;
    border-radius: 12px;
    padding: 14px 20px;
    background-color: #f8fafc;
    color: #475569;
    border: 2px solid #e2e8f0;
}

/* ── Misc ────────────────────────────────────────────── */
.auth-divider-text {
    color: #9ca3af;
}

.auth-forgot-link {
    color: #3b82f6;
    font-size: 0.9rem;
    text-decoration: none;
}

.auth-alert {
    border-radius: 12px;
}

/* ── Interactive states ──────────────────────────────── */
.form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.auth-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.auth-btn-secondary:hover {
    background-color: #e2e8f0;
    border-color: #cbd5e1;
    color: #334155;
}

.auth-forgot-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.auth-country-btn:hover {
    color: #6b7280 !important;
    margin-top: 0 !important;
}

/* ── Country flag icons ──────────────────────────────── */
.flag-icon {
    width: 20px;
    height: 15px;
    display: inline-block;
    margin-right: 8px;
    background-size: cover;
    background-position: center;
    border-radius: 2px;
}

[dir="rtl"] .flag-icon {
    margin-right: 0;
    margin-left: 8px;
}

.flag-icon-sa {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 900 600"><rect width="900" height="600" fill="%23006C35"/></svg>');
}

.flag-icon-ae {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 900 600"><rect width="900" height="600" fill="%23FF0000"/><rect y="200" width="900" height="200" fill="%23fff"/><rect y="400" width="900" height="200" fill="%23000"/><rect width="300" height="600" fill="%23009639"/></svg>');
}

.flag-icon-kw {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 900 600"><rect width="900" height="200" fill="%23007A3D"/><rect y="200" width="900" height="200" fill="%23fff"/><rect y="400" width="900" height="200" fill="%23CE1126"/><polygon points="0,0 0,600 270,300" fill="%23000"/></svg>');
}

.flag-icon-qa {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 900 600"><rect width="900" height="600" fill="%23fff"/><polygon points="0,0 0,600 225,550 225,500 250,475 225,450 225,400 250,375 225,350 225,300 250,275 225,250 225,200 250,175 225,150 225,100 250,75 225,50 225,0 900,0 900,600" fill="%23752F50"/></svg>');
}

.flag-icon-bh {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 900 600"><rect width="900" height="600" fill="%23fff"/><polygon points="0,0 0,600 300,600 350,550 300,500 350,450 300,400 350,350 300,300 350,250 300,200 350,150 300,100 350,50 300,0" fill="%23CE1126"/></svg>');
}

.flag-icon-om {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 900 600"><rect width="900" height="200" fill="%23fff"/><rect y="200" width="900" height="200" fill="%23CE1126"/><rect y="400" width="900" height="200" fill="%23007A3D"/></svg>');
}

.flag-icon-eg {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 900 600"><rect width="900" height="200" fill="%23CE1126"/><rect y="200" width="900" height="200" fill="%23fff"/><rect y="400" width="900" height="200" fill="%23000"/></svg>');
}

.country-selector {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    direction: ltr;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-menu {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    border-radius: 8px;
}
.auth-country-btn span {
    direction: ltr;
}

.auth-dropdown-menu .dropdown-item span {
    direction: ltr;
}
