:root {
    --auth-ink: #16213f;
    --auth-muted: #63708a;
    --auth-line: #dce2ee;
    --auth-navy: #22346b;
    --auth-red: #d72027;
}

* { box-sizing: border-box; }

body.auth-page {
    min-width: 320px;
    margin: 0;
    color: var(--auth-ink);
    font-family: Manrope, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 8% 9%, rgba(215, 32, 39, 0.15), transparent 28rem),
        radial-gradient(circle at 95% 90%, rgba(34, 52, 107, 0.17), transparent 30rem),
        #f4f6fb;
}

.auth-shell { display: grid; min-height: 100vh; place-items: center; padding: 2rem; }
.auth-back-link { position: fixed; top: 1.5rem; left: 1.5rem; color: var(--auth-navy); font-size: 0.84rem; font-weight: 800; text-decoration: none; }
.auth-back-link::before { content: "← "; }
.auth-back-link:hover { color: var(--auth-red); }

.auth-card { display: grid; width: min(100%, 920px); min-height: 560px; grid-template-columns: minmax(300px, 0.9fr) minmax(380px, 1.1fr); overflow: hidden; border: 1px solid rgba(26, 39, 75, 0.08); border-radius: 28px; background: #fff; box-shadow: 0 26px 70px rgba(20, 32, 61, 0.14); }
.auth-brand { display: flex; flex-direction: column; justify-content: space-between; padding: 2.25rem; color: #fff; background: linear-gradient(148deg, rgba(34, 52, 107, 0.96), rgba(18, 30, 68, 0.99)), var(--auth-navy); }
.auth-brand-link { display: flex; align-items: center; gap: 0.8rem; color: inherit; text-decoration: none; }
.auth-logo-wrap { display: grid; width: 58px; height: 58px; place-items: center; overflow: hidden; border-radius: 16px; background: #fff; }
.auth-logo-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 0.35rem; }
.auth-brand-kicker { display: block; margin-bottom: 0.15rem; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.66); }
.auth-brand strong { display: block; font-size: 1rem; }
.auth-brand-copy { max-width: 270px; }
.auth-brand-copy p { margin: 0 0 1.6rem; font-size: 1.42rem; font-weight: 700; line-height: 1.42; }
.auth-brand-copy ul { display: grid; gap: 0.7rem; padding: 0; margin: 0; list-style: none; font-size: 0.85rem; color: rgba(255, 255, 255, 0.78); }
.auth-brand-copy li { display: flex; gap: 0.55rem; align-items: flex-start; }
.auth-brand-copy li::before { width: 0.48rem; height: 0.48rem; margin-top: 0.35rem; flex: 0 0 auto; border-radius: 50%; background: #ef5b61; content: ""; }

.auth-content { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 5vw, 4rem); }
.auth-heading { margin-bottom: 2rem; }
.auth-eyebrow { margin: 0 0 0.55rem; color: var(--auth-red); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.auth-heading h1 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.2rem); letter-spacing: -0.05em; }
.auth-heading > p:last-child { max-width: 390px; margin: 0.8rem 0 0; color: var(--auth-muted); font-size: 0.9rem; line-height: 1.7; }
.auth-form { display: grid; gap: 1.25rem; }
.auth-field { display: grid; gap: 0.48rem; }
.auth-field label { color: #334263; font-size: 0.8rem; font-weight: 800; }
.auth-input { width: 100%; height: 50px; padding: 0 0.9rem; border: 1px solid var(--auth-line); border-radius: 12px; outline: 0; color: var(--auth-ink); font: inherit; font-size: 0.92rem; transition: border-color 160ms ease, box-shadow 160ms ease; }
.auth-input::placeholder { color: #a5adbd; }
.auth-input:focus { border-color: var(--auth-navy); box-shadow: 0 0 0 4px rgba(34, 52, 107, 0.1); }
.auth-field-hint { margin: 0; color: #7a879d; font-size: 0.72rem; line-height: 1.45; }
.auth-error { margin: 0; color: #b91c1c; font-size: 0.76rem; font-weight: 700; }
.auth-status { margin: 0 0 1rem; color: #0f6b45; font-size: 0.82rem; font-weight: 700; }
.auth-remember { color: var(--auth-muted); font-size: 0.8rem; }
.auth-remember label { display: inline-flex; gap: 0.55rem; align-items: center; cursor: pointer; }
.auth-remember input { width: 16px; height: 16px; accent-color: var(--auth-navy); }
.auth-actions { display: grid; gap: 1rem; padding-top: 0.35rem; }
.auth-submit { height: 52px; border: 0; border-radius: 13px; background: var(--auth-navy); color: #fff; font: inherit; font-size: 0.9rem; font-weight: 800; cursor: pointer; box-shadow: 0 10px 20px rgba(34, 52, 107, 0.2); transition: transform 160ms ease, background 160ms ease; }
.auth-submit:hover { background: #182955; transform: translateY(-1px); }
.auth-submit:focus-visible, .auth-back-link:focus-visible, .auth-actions a:focus-visible { outline: 3px solid rgba(215, 32, 39, 0.35); outline-offset: 3px; }
.auth-actions p { margin: 0; color: var(--auth-muted); font-size: 0.8rem; text-align: center; }
.auth-actions a { color: var(--auth-red); font-weight: 800; text-decoration: none; }
.auth-actions a:hover { text-decoration: underline; }

@media (max-width: 760px) {
    .auth-shell { align-items: start; padding: 0; }
    .auth-back-link { position: static; display: block; width: 100%; padding: 1.1rem 1.25rem; background: #fff; }
    .auth-card { min-height: 0; grid-template-columns: 1fr; border: 0; border-radius: 0; box-shadow: none; }
    .auth-brand { min-height: 210px; padding: 1.5rem 1.25rem; }
    .auth-brand-copy p { margin: 2rem 0 0; font-size: 1.05rem; }
    .auth-brand-copy ul { display: none; }
    .auth-content { padding: 2rem 1.25rem 2.6rem; }
}
