/* ───── Auth pages (login, password reset) ───── */
.auth-section {
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(40px, 6vw, 80px) 20px;
    background: var(--dark-grad);
    position: relative;
    overflow: hidden;
}

.auth-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 65% 55% at 72% -8%, rgba(94,80,160,.22), transparent),
        radial-gradient(ellipse 50% 45% at 8% 110%, rgba(198,162,87,.09), transparent);
    pointer-events: none;
}

.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
}

.auth-box {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-lg);
    padding: clamp(28px, 4.5vw, 46px);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    position: relative;
    overflow: hidden;
}

.auth-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(198,162,87,.5), transparent);
}

/* ── Header ── */
.auth-eyebrow {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(198,162,87,.12);
    border: 1px solid rgba(198,162,87,.22);
    border-radius: 99px;
    padding: 4px 12px;
    margin-bottom: 16px;
}

.auth-heading {
    font-size: clamp(1.4rem, 2.2vw, 1.75rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 7px;
    line-height: 1.2;
}

.auth-subheading {
    font-size: .875rem;
    color: rgba(255,255,255,.42);
    margin: 0 0 26px;
    line-height: 1.65;
}

/* ── Error alert ── */
.auth-alert {
    background: rgba(185,55,71,.12);
    border: 1px solid rgba(185,55,71,.28);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: .84rem;
    color: #f87171;
    margin-bottom: 20px;
    line-height: 1.5;
}

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

.auth-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}

.auth-label-text {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
    line-height: 1;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
    width: 100%;
    background: rgba(0,0,0,.3);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius);
    padding: 11px 14px;
    color: #f0ecf7;
    font-size: .94rem;
    transition: border-color .2s, box-shadow .2s;
    min-height: 46px;
    font-family: inherit;
}

.auth-form input::placeholder {
    color: rgba(255,255,255,.2);
    font-size: .88rem;
}

.auth-form input:focus {
    outline: none;
    border-color: rgba(198,162,87,.6);
    box-shadow: 0 0 0 3px rgba(198,162,87,.1);
}

.auth-form input.is-error {
    border-color: rgba(248,113,113,.5);
    box-shadow: 0 0 0 3px rgba(248,113,113,.08);
}

/* ── Remember + Forgot row ── */
.auth-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: -2px;
}

.auth-remember {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.auth-remember input[type="checkbox"] {
    width: 15px;
    height: 15px;
    border-radius: 3px;
    accent-color: var(--gold);
    cursor: pointer;
    flex: 0 0 auto;
}

.auth-remember .auth-label-text {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
    color: rgba(255,255,255,.38);
    font-size: .82rem;
}

.auth-link {
    font-size: .82rem;
    color: var(--gold-soft);
    text-decoration: none;
    transition: color .18s;
    white-space: nowrap;
}

.auth-link:hover { color: var(--gold-2); }

/* ── Submit button ── */
.auth-submit {
    width: 100%;
    background: var(--grad-gold);
    color: #1a1408;
    border: none;
    border-radius: var(--radius);
    padding: 13px 20px;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .18s, transform .18s, box-shadow .18s;
    margin-top: 4px;
    box-shadow: 0 6px 22px rgba(198,162,87,.28);
    letter-spacing: .02em;
    font-family: inherit;
}

.auth-submit:hover {
    opacity: .88;
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(198,162,87,.38);
}

.auth-submit:active { transform: translateY(0); }

/* ── Footer note ── */
.auth-foot-text {
    text-align: center;
    font-size: .82rem;
    color: rgba(255,255,255,.28);
    margin: 22px 0 0;
}

.auth-foot-text a {
    color: var(--gold-soft);
    text-decoration: none;
    transition: color .18s;
}

.auth-foot-text a:hover { color: var(--gold-2); }

/* ── Success notice (email sent, resent, etc.) ── */
.auth-success {
    display: flex;
    align-items: center;
    gap: 9px;
    background: rgba(52,211,153,.1);
    border: 1px solid rgba(52,211,153,.22);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: .84rem;
    color: #34d399;
    margin-bottom: 20px;
    line-height: 1.5;
}

.auth-success svg { flex: 0 0 auto; }

/* ── Verify icon ── */
.auth-verify-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 4px;
}

/* ── RTL ── */
[dir="rtl"] .auth-form input { text-align: right; }
[dir="rtl"] .auth-form-row { flex-direction: row-reverse; }
