:root {
    --zavvero-crm: #164e52;
    --zavvero-crm-deep: #103c3f;
    --zavvero-crm-soft: #dce9e8;
    --zavvero-brand: #f36b21;
    --zavvero-gold: #f4bd61;
    --auth-ink: #172526;
    --auth-muted: #687879;
    --auth-surface: #fbfaf7;
    --auth-border: #d9e1df;
}

html:has(body.auth-page) { background: var(--auth-surface); }

body.auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    color: var(--auth-ink);
    background: var(--auth-surface);
    font-family: var(--ig-font-sans);
}

.auth-page .auth-wrapper {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(28rem, .96fr);
}

.auth-page .auth-intro {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(2rem, 5vw, 5.5rem);
    color: #fff;
    background: var(--zavvero-crm);
}

.auth-page .brand {
    width: fit-content;
    display: inline-block;
    color: inherit;
    text-decoration: none;
}

.auth-page .brand:hover { color: inherit; }

.auth-page .brand__image {
    width: 230px;
    max-width: 100%;
    height: auto;
    display: block;
}

.auth-page .auth-intro__content { max-width: 42rem; padding-block: clamp(3rem, 9vh, 7rem) 1rem; }

.auth-page .eyebrow {
    display: inline-block;
    color: var(--zavvero-crm);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.auth-page .eyebrow--gold { color: var(--zavvero-gold); }

.auth-page .auth-intro h1 {
    max-width: 11ch;
    margin: 1.25rem 0 1.5rem;
    color: #fff;
    font-size: clamp(2.75rem, 5.2vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: .98;
}

.auth-page .auth-intro p {
    max-width: 38rem;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 1.7;
}

.auth-page .auth-panel {
    min-width: 0;
    display: grid;
    place-items: center;
    padding: clamp(2rem, 6vw, 6rem);
    background: var(--auth-surface);
}

.auth-page .login-card { width: min(100%, 28rem); }
.auth-page .login-card h2 { margin: .75rem 0 .65rem; color: var(--auth-ink); font-size: clamp(2rem, 3vw, 2.65rem); font-weight: 800; letter-spacing: -.035em; }
.auth-page .muted { margin: 0 0 2rem; color: var(--auth-muted); line-height: 1.65; }

.auth-page .auth-alert {
    margin-bottom: 1.25rem;
    padding: .9rem 1rem;
    border: 1px solid #efb6bb;
    border-radius: .7rem;
    color: #842d35;
    background: #fff0f1;
}

.auth-page .form-stack { display: grid; gap: 1.25rem; }
.auth-page .auth-field { display: grid; gap: .5rem; }
.auth-page .auth-field label { color: var(--auth-ink); font-size: .9rem; font-weight: 750; }

.auth-page .auth-field input {
    width: 100%;
    min-height: 3.25rem;
    padding: .75rem .9rem;
    border: 1px solid var(--auth-border);
    border-radius: .7rem;
    color: var(--auth-ink);
    background: #fff;
    font: inherit;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.auth-page .auth-field input:hover { border-color: #afbfbd; }
.auth-page .auth-field input:focus { border-color: var(--zavvero-crm); outline: 0; box-shadow: 0 0 0 .22rem rgba(22, 78, 82, .14); }

.auth-page .button {
    min-height: 3.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .75rem 1.1rem;
    border: 1px solid var(--zavvero-crm);
    border-radius: .7rem;
    color: #fff;
    background: var(--zavvero-crm);
    font: 800 .95rem/1 var(--ig-font-sans);
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.auth-page .button:hover { border-color: var(--zavvero-crm-deep); background: var(--zavvero-crm-deep); }
.auth-page .button:active { transform: translateY(1px); }
.auth-page .button:focus-visible { outline: 3px solid rgba(22, 78, 82, .3); outline-offset: 3px; }
.auth-page .button--block { width: 100%; }

@media (max-width: 991.98px) {
    .auth-page .auth-wrapper { grid-template-columns: minmax(20rem, .9fr) minmax(24rem, 1.1fr); }
    .auth-page .auth-intro, .auth-page .auth-panel { padding: clamp(2rem, 4vw, 3.5rem); }
    .auth-page .brand__image { width: 210px; }
    .auth-page .auth-intro h1 { font-size: clamp(2.6rem, 5vw, 4rem); }
}

@media (max-width: 767.98px) {
    .auth-page .auth-wrapper { display: block; }
    .auth-page .auth-intro { min-height: 22rem; padding: 1.5rem; }
    .auth-page .brand__image { width: 184px; }
    .auth-page .auth-intro__content { padding: 3.5rem 0 .5rem; }
    .auth-page .auth-intro h1 { max-width: 13ch; margin-block: 1rem; font-size: clamp(2.25rem, 10vw, 3.25rem); }
    .auth-page .auth-intro p { font-size: 1rem; line-height: 1.55; }
    .auth-page .auth-panel { min-height: auto; padding: 2.5rem 1.5rem 3rem; }
}

@media (max-width: 374.98px) {
    .auth-page .auth-intro { min-height: 20rem; padding: 1.25rem; }
    .auth-page .auth-intro__content { padding-top: 2.75rem; }
    .auth-page .auth-intro h1 { font-size: 2.15rem; }
    .auth-page .auth-panel { padding-inline: 1.25rem; }
}

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