/* El Bab – login, register and password pages. Split screen on desktop:
   navy photo panel with the door motif; calm cream form side. */

.auth-page { margin: 0; background: var(--cream); }
.auth-shell { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }

.auth-visual { position: relative; overflow: hidden; background: var(--navy-deep); color: var(--cream); }
.auth-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-visual-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 35, 58, .35) 0%, rgba(16, 35, 58, .55) 45%, rgba(16, 35, 58, .94) 100%); }
.auth-visual .door-lines { position: absolute; width: 46%; max-width: 21rem; inset-inline-end: 8%; top: 9%; transform: none; color: var(--gold); opacity: .55; }
[dir="rtl"] .auth-visual .door-lines { transform: scaleX(-1); }
.auth-visual-text { position: absolute; inset-inline: clamp(2rem, 5vw, 4.5rem); bottom: clamp(2.5rem, 7vh, 5rem); }
.auth-eyebrow { margin: 0 0 1.2rem; font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
[dir="rtl"] .auth-eyebrow { letter-spacing: 0; font-size: .95rem; }
.auth-tagline { margin: 0; font-family: var(--serif); font-size: clamp(2.6rem, 4.6vw, 4.6rem); line-height: 1.05; color: var(--cream); }
[dir="rtl"] .auth-tagline { line-height: 1.4; }
.auth-tagline span { display: block; }
.auth-tagline span:last-child { color: var(--gold-soft); }
.auth-points { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid rgba(243, 239, 230, .25); font-size: .9rem; color: rgba(243, 239, 230, .85); }
.auth-points li::before { content: "◆"; color: var(--gold); font-size: .55rem; margin-inline-end: .6rem; vertical-align: .2em; }

.auth-main { display: flex; flex-direction: column; min-height: 100vh; padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 5vw, 5rem); }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.auth-langs { display: flex; gap: .4rem; }
.auth-langs a { padding: .3rem .75rem; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; text-decoration: none; }
.auth-langs a[aria-current] { background: var(--navy); border-color: var(--navy); color: var(--cream); }

.auth-body { width: min(100%, 26rem); margin: auto; padding-block: 2.5rem; }
.auth-body.is-wide { width: min(100%, 34rem); }
.auth-body h1 { margin: 0 0 .5rem; font-family: var(--serif); font-size: clamp(2.2rem, 3.4vw, 3rem); color: var(--navy); }
.auth-body .auth-lead { margin: 0 0 2rem; color: var(--muted); }
.auth-body .form { gap: 1.25rem; }
.auth-body .field input { min-height: 54px; background: var(--white); border-color: #d8ccb6; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .9rem; }
.auth-row a { color: var(--navy); }
.auth-body .btn-block { min-height: 56px; font-size: 1.02rem; }
.auth-divider { display: flex; align-items: center; gap: 1rem; margin: 1.75rem 0 1rem; color: var(--muted); font-size: .85rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-alt { text-align: center; font-size: .95rem; color: var(--muted); margin: 0; }
.auth-alt a { color: var(--navy); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: .1rem; }
.auth-privacy { display: flex; gap: .6rem; align-items: flex-start; margin-top: 1.5rem; padding: .9rem 1rem; border-radius: var(--radius); background: #f7f1e6; border: 1px solid #eadfca; font-size: .85rem; color: var(--muted); }
.auth-privacy .icon { width: 18px; height: 18px; color: var(--gold-deep); flex: none; margin-top: .1rem; }
.auth-foot { display: flex; gap: .6rem; justify-content: center; margin: 0; font-size: .82rem; color: var(--muted); }
.auth-foot a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; }
.auth-foot .icon { width: 14px; height: 14px; }
.auth-body .role-pick .role-box { padding: 1.1rem; }
.auth-body .alert { margin-bottom: 1.25rem; }
.auth-icon { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 1.5rem; border-radius: 50%; background: var(--gold-soft); color: var(--gold-deep); }
.auth-icon .icon { width: 34px; height: 34px; }

@media (max-width: 899px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-visual { min-height: 15rem; }
    .auth-visual img { object-position: 50% 60%; }
    .auth-visual .door-lines { width: 7rem; top: 1.5rem; inset-inline-end: 1.5rem; }
    .auth-visual-text { inset-inline: 1.5rem; bottom: 1.5rem; }
    .auth-tagline { font-size: 2rem; }
    .auth-tagline span { display: inline; }
    .auth-eyebrow { margin-bottom: .6rem; font-size: .68rem; }
    .auth-points { display: none; }
    .auth-main { min-height: 0; padding-top: 1.25rem; }
    .auth-body { padding-block: 1.75rem 2.5rem; }
}
