/* ==========================================================================
   Authentication pages — split brand panel + form.
   Loaded by layouts/auth.php on top of app.css.
   ========================================================================== */

.auth-body {
    background:
        radial-gradient(900px 520px at 8% -6%, rgba(211,175,55,.13), transparent 62%),
        radial-gradient(760px 440px at 98% 4%, rgba(211,175,55,.07), transparent 58%),
        var(--mp-ink);
    padding: 2rem 1rem 3rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.auth-shell { width: 100%; }

.auth-card {
    background: linear-gradient(160deg, var(--mp-ink-3), var(--mp-ink-2));
    border: 1px solid var(--mp-line);
    border-radius: var(--mp-radius-lg);
    box-shadow: var(--mp-shadow-lg);
    overflow: hidden;
}

/* Brand panel -------------------------------------------------------------- */

.auth-aside {
    background:
        radial-gradient(600px 320px at 12% 0%, rgba(211,175,55,.16), transparent 60%),
        linear-gradient(160deg, #1b1c20, #121315);
    border-right: 1px solid var(--mp-line);
    padding: 2rem 1.9rem;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
}

.auth-aside-title {
    font-size: clamp(1.2rem, 2.4vw, 1.55rem);
    font-weight: 800;
    line-height: 1.3;
    color: var(--mp-white);
    margin: 0;
    letter-spacing: -.02em;
}

.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.auth-points li {
    display: flex;
    gap: .7rem;
    align-items: flex-start;
    font-size: .89rem;
    color: var(--mp-text-dim);
    line-height: 1.55;
}
.auth-points i { color: var(--mp-gold); margin-top: .18rem; flex: 0 0 auto; width: 16px; text-align: center; }

.auth-aside-foot { margin: auto 0 0; font-size: .85rem; }
.auth-aside-foot a { color: var(--mp-text-mute); text-decoration: none; }
.auth-aside-foot a:hover { color: var(--mp-gold); }

/* Form side ---------------------------------------------------------------- */

.auth-main { padding: 2rem 1.9rem; }

.auth-form-wrap { max-width: 560px; }
.auth-form-wide { max-width: 100%; }

.auth-form-head { margin-bottom: 1.5rem; }
.auth-form-head h1 {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 800;
    margin: 0 0 .4rem;
    letter-spacing: -.02em;
}
.auth-form-sub { color: var(--mp-text-dim); margin: 0; font-size: .93rem; }

.auth-form .form-label { color: var(--mp-text-dim); }

.auth-inline-link { font-size: .82rem; font-weight: 600; }

.auth-fieldset {
    border: 1px solid var(--mp-line-soft);
    border-radius: 12px;
    padding: 1.1rem 1rem .4rem;
    margin: 0 0 1.25rem;
}
.auth-fieldset legend {
    float: none;
    width: auto;
    padding: 0 .5rem;
    margin: 0 0 0 -.5rem;
    font-size: .74rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--mp-gold);
    font-weight: 700;
}

/* Tabs --------------------------------------------------------------------- */

.auth-tabs {
    display: flex;
    gap: .4rem;
    margin-bottom: 1.4rem;
    padding: .3rem;
    background: rgba(0,0,0,.25);
    border: 1px solid var(--mp-line);
    border-radius: 999px;
}
.auth-tab {
    flex: 1 1 0;
    text-align: center;
    padding: .6rem .8rem;
    border-radius: 999px;
    font-size: .88rem;
    font-weight: 700;
    color: var(--mp-text-dim);
    text-decoration: none;
    white-space: nowrap;
}
.auth-tab:hover { color: var(--mp-white); }
.auth-tab.is-active {
    background: linear-gradient(135deg, var(--mp-gold), var(--mp-gold-2));
    color: var(--mp-ink);
}

/* Notes -------------------------------------------------------------------- */

.auth-note {
    display: flex;
    gap: .7rem;
    align-items: flex-start;
    margin-top: 1.4rem;
    padding: .8rem .95rem;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--mp-line-soft);
    border-radius: 11px;
    font-size: .84rem;
    color: var(--mp-text-dim);
    line-height: 1.55;
}
.auth-note i { color: var(--mp-gold); margin-top: .15rem; flex: 0 0 auto; }
.auth-note-gold { background: var(--mp-gold-soft); border-color: rgba(211,175,55,.35); }

.auth-switch {
    margin: 1.4rem 0 0;
    font-size: .9rem;
    color: var(--mp-text-dim);
    text-align: center;
}

/* Outcome states ----------------------------------------------------------- */

.auth-state { text-align: center; padding: 1rem 0; }
.auth-state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 66px; height: 66px;
    border-radius: 50%;
    margin-bottom: 1.1rem;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--mp-line);
    color: var(--mp-text-dim);
    font-size: 1.6rem;
}
.auth-state-icon-gold {
    background: var(--mp-gold-soft);
    border-color: rgba(211,175,55,.45);
    color: var(--mp-gold);
}
.auth-state-icon-good {
    background: rgba(79,174,122,.16);
    border-color: rgba(79,174,122,.45);
    color: #8fd9b6;
}
.auth-state-bad .auth-state-icon {
    background: rgba(217,87,87,.14);
    border-color: rgba(217,87,87,.42);
    color: #f0a0a0;
}

.auth-state h1 { font-size: clamp(1.3rem, 3vw, 1.75rem); font-weight: 800; margin: 0 0 .6rem; }
.auth-state p { color: var(--mp-text-dim); max-width: 46ch; margin: 0 auto; }

.auth-state-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.auth-checklist {
    margin: 1.5rem auto 0;
    max-width: 46ch;
    text-align: left;
    display: grid;
    gap: .5rem;
}
.auth-checklist p {
    margin: 0;
    font-size: .86rem;
    color: var(--mp-text-dim);
    display: flex;
    gap: .55rem;
    align-items: flex-start;
}
.auth-checklist i { color: var(--mp-success); margin-top: .2rem; flex: 0 0 auto; }

/* Honeypot ---------------------------------------------------------------- */

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 991.98px) {
    .auth-body { align-items: flex-start; padding: 1rem .75rem 2.5rem; }
    .auth-aside {
        border-right: 0;
        border-bottom: 1px solid var(--mp-line);
        padding: 1.4rem 1.25rem;
        gap: 1.1rem;
    }
    .auth-points { grid-template-columns: 1fr; }
    .auth-aside-foot { margin-top: .5rem; }
    .auth-main { padding: 1.4rem 1.25rem 1.6rem; }
}

@media (max-width: 575.98px) {
    .auth-aside { padding: 1.1rem 1rem; }
    .auth-main { padding: 1.1rem 1rem 1.4rem; }
    .auth-tabs { flex-direction: column; border-radius: 14px; }
    .auth-tab { border-radius: 10px; }
    .auth-state-actions .btn { flex: 1 1 auto; }
}
/* Google sign-in ------------------------------------------------------------ */
.auth-divider { display: flex; align-items: center; gap: .8rem; margin: 1.3rem 0 1rem; color: var(--mp-text-dim); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1 1 auto; height: 1px; background: var(--mp-line); }
.btn-google { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; background: #fff; color: #1f1f1f; border: 1px solid #dadce0; border-radius: 10px; padding: .7rem 1rem; font-weight: 600; text-decoration: none; }
.btn-google:hover { background: #f6fafe; color: #1f1f1f; border-color: #c6dafc; box-shadow: 0 1px 3px rgba(60,64,67,.3); }
.btn-google svg { width: 20px; height: 20px; flex: 0 0 auto; }
.btn-google-hero { padding: .95rem 1rem; font-size: 1.02rem; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.btn-google-hero svg { width: 24px; height: 24px; }
.auth-password-fold { margin-top: 1rem; }
.auth-password-fold > summary {
    cursor: pointer;
    text-align: center;
    font-size: .88rem;
    color: var(--mp-text-dim);
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: .4rem;
}
.auth-password-fold > summary:hover { color: var(--mp-gold); }
.auth-password-fold .auth-form { margin-top: 1rem; }
