/* ======================================================
   auth.css — Byniss site-v2 authentication
   Two-panel shell (brand + form). Same tokens as home.css.
   Mobile-first; desktop enhances into the split layout.
   ====================================================== */

.auth-wrap {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 78vh;
}

/* ── Brand panel (echoes the homepage hero) ── */
.auth-brand {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at 20% 15%, rgba(255, 255, 255, .16), transparent 42%),
        radial-gradient(circle at 85% 80%, rgba(var(--neon-rgb), .38), transparent 46%),
        linear-gradient(160deg, var(--primary) 0%, #a31f57 52%, var(--ink) 100%);
    padding: clamp(28px, 6vw, 40px) clamp(20px, 5vw, 40px);
}
.auth-brand::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.auth-brand-inner { text-align: center; max-width: 340px; margin: 0 auto; }
.auth-brand-logo img { width: clamp(66px, 16vw, 96px); height: auto; margin: 0 auto 10px; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .3)); }
.auth-brand-script { font-family: 'Great Vibes', cursive; font-size: clamp(24px, 6vw, 34px); color: #ffdbe7; line-height: 1; }
.auth-brand-name {
    font-family: 'Cinzel', serif; font-weight: 700; text-transform: uppercase;
    letter-spacing: 3px; font-size: clamp(18px, 4vw, 24px); margin-top: 2px;
}
.auth-brand .hero3-divider { margin: 12px 0; }
.auth-brand-trust { display: none; }
.auth-brand-trust li {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    font-size: 14px; padding: 7px 0; color: #fbe3ec;
}
.auth-brand-trust i { color: var(--gold-light); width: 18px; text-align: center; }

/* ── Form side ── */
.auth-main {
    display: flex; align-items: center; justify-content: center;
    background: var(--bg);
    padding: clamp(28px, 6vw, 56px) clamp(16px, 5vw, 40px);
}
.auth-card {
    width: 100%; max-width: 420px;
    background: var(--white);
    border: 1px solid var(--border-soft);
    border-radius: 22px;
    padding: clamp(24px, 5vw, 38px);
    box-shadow: 0 20px 50px rgba(var(--primary-rgb), .12);
}

.auth-head { text-align: center; margin-bottom: 18px; }
.auth-eyebrow {
    font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 11.5px;
    letter-spacing: 3px; text-transform: uppercase; color: var(--primary); margin-bottom: 6px;
}
.auth-title {
    font-family: 'Cinzel', serif; font-weight: 700; font-size: clamp(24px, 4.5vw, 32px);
    text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-strong);
}
.auth-sub { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; margin-top: 8px; }

/* ── Alerts ── */
.auth-alert {
    display: flex; align-items: flex-start; gap: 9px;
    padding: 12px 14px; border-radius: 12px; font-size: 13px; line-height: 1.5; margin-bottom: 16px;
}
.auth-alert--ok { background: #eaf7ef; border: 1px solid #bfe3cd; color: #2f7d54; }
.auth-alert--err { background: #fdecec; border: 1px solid #f4c5c0; color: #a52218; }

/* ── Form ── */
.auth-form { display: flex; flex-direction: column; }
.auth-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.auth-field > label { font-size: 12.5px; font-weight: 600; color: var(--text-strong); }
.auth-field input {
    width: 100%; min-height: 50px; padding: 13px 15px;
    border: 1px solid var(--border-soft); border-radius: 13px; background: var(--white);
    font-family: 'Poppins', sans-serif; font-size: 15px; color: var(--text-strong);
    outline: none; transition: border-color .2s, box-shadow .2s;
}
.auth-field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .12); }
.auth-field.is-invalid input { border-color: #d93906; box-shadow: 0 0 0 3px rgba(217, 57, 6, .1); }
.auth-err { color: #d93906; font-size: 12px; }

/* password show/hide */
.auth-input-wrap { position: relative; }
.auth-input-wrap input { padding-right: 48px; }
.auth-eye {
    position: absolute; top: 0; right: 0; height: 100%; width: 46px;
    display: flex; align-items: center; justify-content: center;
    background: none; border: none; cursor: pointer; color: var(--text-muted);
    font-size: 15px; transition: color .2s;
}
.auth-eye:hover { color: var(--primary); }

/* remember / forgot row */
.auth-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    flex-wrap: wrap; margin: 2px 0 20px;
}
.auth-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); cursor: pointer; }
.auth-check input { width: 17px; height: 17px; accent-color: var(--primary); }
.auth-link { color: var(--primary); font-weight: 600; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.auth-link:hover { color: var(--btn-2); }

.auth-legal { font-size: 11.5px; color: var(--text-muted); line-height: 1.55; margin: 2px 0 18px; }

.auth-submit { width: 100%; }

/* footers */
.auth-foot {
    text-align: center; margin-top: 20px; padding-top: 16px;
    border-top: 1px solid var(--border-soft); font-size: 13.5px; color: var(--text);
}
.auth-back {
    display: block; text-align: center; margin-top: 14px;
    font-size: 12.5px; font-weight: 600; color: var(--text-muted);
}
.auth-back:hover { color: var(--primary); }

/* ── Desktop split ── */
@media (min-width: 900px) {
    .auth-wrap { grid-template-columns: 1fr 1fr; }
    .auth-brand { display: flex; align-items: center; justify-content: center; }
    .auth-brand-trust { display: block; margin-top: 8px; }
    .auth-brand .hero3-divider { margin: 16px 0; }
}

@media (prefers-reduced-motion: reduce) {
    .auth-field input, .auth-eye { transition: none; }
}
