/* Developed by RegiTech (+2348038240084). Unauthorized removal does not transfer authorship. */
/* ═══════════════════════════════════════════════════════════════
   Auth pages — shared shell
   ═══════════════════════════════════════════════════════════════
   One red brand header with the sheet overlapping it, matching the
   dashboard masthead and the public pages. Previously each auth page
   carried its own near-identical copy of these rules inline, so the
   five drifted apart — this is the single source for all of them.

   Page-specific bits (a biometric button, an email echo, a countdown)
   stay in the page's own <style>; only the shell lives here.
   ═══════════════════════════════════════════════════════════════ */

html, body { min-height: 100vh; }
/* Page and sheet are the SAME surface. When they differed, the strip below
   the card read as a second sheet sliding under the first. */
body { padding-bottom: 0 !important; background: var(--mp-card-bg); }
.app-body-wrap { padding-bottom: 0 !important; min-height: 100vh !important; background: var(--mp-card-bg); }

.auth-bg { display: flex; flex-direction: column; align-items: center; padding: 0 0 46px; }

/* ── Red header ── */
.auth-top {
    position: relative; overflow: hidden;
    width: 100%; padding: 20px 20px 54px;
    background: var(--mp-btn-grad); color: #fff;
}
.auth-top::after {
    content: ''; position: absolute; right: -80px; top: -140px;
    width: 280px; height: 280px; border-radius: 50%;
    background: rgba(255, 255, 255, .08); pointer-events: none;
}
.auth-top-inner { position: relative; z-index: 1; width: 100%; max-width: 420px; margin: 0 auto; }
.auth-topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* The wordmark is dark red on dark ink, so on the red field it all but
   disappears. A white pill restores the contrast the logo was drawn for —
   we have no light variant of the artwork to swap in. */
.auth-logo-inline {
    display: inline-flex; align-items: center; text-decoration: none;
    padding: 9px 16px; border-radius: 999px;
    background: #fff;
    box-shadow: 0 8px 20px -12px rgba(0, 0, 0, .45);
}
/* Height-driven with width auto — the wordmark is not square, and the rules
   these pages used to carry forced it into a 44px box. */
.auth-logo-inline img { height: 26px; width: auto; display: block; }

.auth-theme-btn {
    display: inline-flex; align-items: center; gap: 7px; width: auto;
    padding: 7px 14px; border-radius: 999px; border: 0;
    background: rgba(255, 255, 255, .18); color: #fff;
    font-size: 12.5px; font-weight: 700; cursor: pointer;
    transition: background .18s ease, transform .12s ease;
}
/* color restated — styles.css has a global button:hover { color: #AB2923 },
   which would put brand red on the brand fill. */
.auth-theme-btn:hover { background: rgba(255, 255, 255, .28); color: #fff; }
.auth-theme-btn:active { transform: scale(.96); }
.auth-theme-btn i { font-size: 14px; }

.auth-head { margin-top: 30px; }
.auth-head h1 {
    margin: 0 0 8px; color: #fff;
    font-size: 27px; font-weight: 800; letter-spacing: -1px; line-height: 1.15;
}
.auth-head p { margin: 0; font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .85); }
.auth-head .auth-email { margin: 6px 0 0; font-size: 14px; font-weight: 700; color: #fff; }

/* ── Sheet, overlapping the header ── */
.auth-card {
    position: relative; z-index: 2;
    width: 100%; max-width: 420px; margin: -34px auto 0;
    padding: 24px 20px 26px;
    border-radius: 24px;
    background: var(--mp-card-bg);
    /* No hairline: on matching paper it draws a box. Depth is the shadow. */
    box-shadow: 0 22px 48px -30px rgba(16, 24, 40, .3);
}

/* Grouped fieldsets — used where a form is long enough to need sections. */
.auth-group + .auth-group { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--mp-border); }
.auth-group-title {
    display: flex; align-items: center; gap: 9px; margin: 0 0 4px;
    font-size: 11px; font-weight: 800; letter-spacing: 1.1px;
    text-transform: uppercase; color: var(--mp-brand);
}
.auth-group-title i { font-size: 13px; }

.auth-card .group-input { margin-top: 16px; margin-bottom: 0; }
.auth-card .group-input input,
.auth-card .group-input select { border-radius: 13px !important; border: 1.5px solid var(--mp-border) !important; }
.auth-card .group-input input:focus { border-color: var(--mp-brand) !important; }
.auth-card .group-input label { background: var(--mp-card-bg); }
.auth-card .tf-form { margin-bottom: 0 !important; }
.auth-name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-name-row .group-input { margin-top: 16px !important; }

.auth-hint { margin: 8px 0 0; font-size: 11.5px; color: var(--mp-text-muted); }
.auth-forgot-link {
    display: block; text-align: right; margin: 12px 0 4px;
    font-size: 12.5px; font-weight: 700; color: var(--mp-brand); text-decoration: none;
}
.auth-forgot-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.auth-terms { margin: 20px 0 18px; }
.auth-terms a { color: var(--mp-brand); font-weight: 700; }

.auth-or-line {
    display: flex; align-items: center; gap: 12px; margin: 20px 0;
    font-size: 11px; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; color: var(--mp-text-muted);
}
.auth-or-line::before, .auth-or-line::after { content: ''; flex: 1; height: 1px; background: var(--mp-border); }

.auth-google-btn,
.auth-biometric-btn {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 13px; border: 0; border-radius: 13px;
    background: var(--mp-card-bg); color: var(--mp-text);
    box-shadow: inset 0 0 0 1.5px var(--mp-border);
    font-size: 14px; font-weight: 700; cursor: pointer;
    transition: box-shadow .16s ease, background .16s ease;
}
.auth-biometric-btn { margin-top: 10px; }
.auth-google-btn:hover,
.auth-biometric-btn:hover { box-shadow: inset 0 0 0 1.5px var(--mp-brand); background: var(--mp-card-bg); color: var(--mp-text); }

.auth-bottom-link {
    width: 100%; max-width: 420px; margin-top: 20px;
    text-align: center; font-size: 13.5px; color: var(--mp-text-muted);
}
.auth-bottom-link a { color: var(--mp-brand); font-weight: 700; text-decoration: none; }

/* Reassurance strip — auth is where people hesitate. */
.auth-trust {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px;
    width: 100%; max-width: 420px; margin: 18px auto 0; padding: 0 20px;
    list-style: none;
}
.auth-trust li { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--mp-text-muted); }
.auth-trust i { color: var(--mp-brand); font-size: 13px; }

@media (max-width: 420px) {
    .auth-top { padding: 16px 16px 50px; }
    .auth-head h1 { font-size: 24px; }
    .auth-card { max-width: none; margin-left: 12px; margin-right: 12px; padding: 22px 16px 24px; }
    .auth-name-row { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .auth-theme-btn, .auth-google-btn, .auth-biometric-btn { transition: none; }
    .auth-theme-btn:active { transform: none; }
}
