:root {
    color-scheme: light;
    font-family: "Source Sans 3", "Public Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1b1b1b;
    background: #f1f8f5;
}

* { box-sizing: border-box; }

body {
    min-height: 100vh;
    margin: 0;
    display: grid;
    grid-template-rows: auto 1fr auto;
    background:
        radial-gradient(circle at 15% 12%, rgba(25, 111, 82, .14), transparent 34rem),
        linear-gradient(145deg, #f7fbf9, #e7f2ed);
}

.site-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1.25rem clamp(1rem, 5vw, 4rem);
    border-bottom: 1px solid #c9ddd4;
    background: rgba(255, 255, 255, .84);
}

.site-header span { display: block; color: #4a5b53; font-size: .875rem; }

.brand-mark {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: .35rem;
    color: white;
    background: #075f45;
    font-weight: 800;
    font-size: 1.35rem;
}

main { display: grid; place-items: center; padding: 2rem 1rem; }

.login-card {
    width: min(100%, 31rem);
    padding: clamp(1.5rem, 5vw, 2.5rem);
    background: #fff;
    border: 1px solid #c9ddd4;
    border-radius: .6rem;
    box-shadow: 0 1rem 3rem rgba(15, 65, 49, .12);
}

.eyebrow {
    margin: 0 0 .6rem;
    color: #075f45;
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

h1 { margin: 0; font-size: clamp(1.75rem, 5vw, 2.25rem); line-height: 1.12; }
.context { color: #4a5b53; line-height: 1.55; }
.onboarding-login-note { padding: .75rem; border: 1px solid #c9ddd4; border-radius: .35rem; color: #4a5b53; font-size: .875rem; line-height: 1.55; background: #f7fbf9; }
.owner-enrollment-option { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid #c9ddd4; }
.owner-enrollment-option h2 { margin: 0; font-size: 1.1rem; }
.owner-enrollment-option p, .owner-enrollment-warning { color: #4a5b53; font-size: .9rem; line-height: 1.6; }
.owner-enrollment-action { display: block; padding: .75rem; border: 2px solid #075f45; border-radius: .25rem; color: #075f45; text-align: center; text-decoration: none; font-weight: 700; }
.owner-enrollment-action:hover { background: #ecf3ec; }
.owner-enrollment-action:focus-visible, .owner-enrollment-existing a:focus-visible { outline: .25rem solid #face00; outline-offset: .15rem; }
.owner-enrollment-account { display: grid; gap: .75rem; margin: 1.25rem 0; }
.owner-enrollment-account > div { padding: .85rem 1rem; border: 1px solid #c9ddd4; border-radius: .35rem; background: #f7fbf9; }
.owner-enrollment-account span { display: block; margin-bottom: .3rem; color: #4a5b53; font-size: .8rem; font-weight: 700; }
.owner-enrollment-account strong, .owner-enrollment-account p { overflow-wrap: anywhere; }
.owner-enrollment-account p { margin: .35rem 0 0; color: #4a5b53; font-size: .9rem; }
.owner-enrollment-warning { padding: .85rem 1rem; border-left: .25rem solid #00bde3; background: #e7f6f8; }
.owner-enrollment-help { margin: .4rem 0 0; color: #52645b; font-size: .8rem; line-height: 1.55; }
.owner-enrollment-consent { display: flex; align-items: flex-start; gap: .65rem; margin-top: 1.25rem; font-size: .875rem; font-weight: 400; line-height: 1.6; }
.owner-enrollment-consent input { width: 1.2rem; height: 1.2rem; min-height: 1.2rem; flex: 0 0 1.2rem; margin: .2rem 0 0; padding: 0; accent-color: #075f45; }
.owner-enrollment-existing { margin-top: 1.25rem; color: #075f45; font-size: .9rem; line-height: 1.6; }
.owner-enrollment-existing a { color: #075f45; }

label { display: block; margin: 1rem 0 .4rem; font-weight: 700; }

input {
    width: 100%;
    min-height: 2.75rem;
    padding: .65rem .75rem;
    border: 2px solid #60736a;
    border-radius: .2rem;
    font: inherit;
}

input:focus { outline: .25rem solid #face00; outline-offset: 0; border-color: #1b1b1b; }

button {
    width: 100%;
    min-height: 3rem;
    margin-top: 1.5rem;
    border: 0;
    border-radius: .25rem;
    color: #fff;
    background: #075f45;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

button:hover { background: #064c38; }
button:focus { outline: .25rem solid #face00; outline-offset: .15rem; }

.alert { margin: 1.25rem 0; padding: .9rem 1rem; border-left: .35rem solid; line-height: 1.45; }
.alert-error { border-color: #b50909; background: #f4e3db; }
.alert-success { border-color: #008817; background: #ecf3ec; }
.alert-info { border-color: #00bde3; background: #e7f6f8; }
.privacy-note { margin: 1.5rem 0 0; color: #52645b; font-size: .9rem; line-height: 1.5; }

footer { padding: 1rem; color: #52645b; text-align: center; font-size: .85rem; }

@media (max-width: 30rem) {
    main { padding: 1rem; place-items: start center; }
    .login-card { padding: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.upstream-providers { display: grid; gap: .75rem; margin: 1rem 0; }
.provider-button { display: block; padding: .85rem 1rem; border: 1px solid #b8c4ce; border-radius: .35rem; text-align: center; text-decoration: none; font-weight: 700; color: #1a4480; background: #fff; }
.provider-button:hover, .provider-button:focus { border-color: #005ea8; background: #f1f8ff; }
.provider-button--google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .625rem;
    min-height: 3rem;
    padding: .35rem .75rem;
    color: #1f1f1f;
    border-color: #747775;
    background: #fff;
}
.provider-button--google:hover, .provider-button--google:focus { background: #fff; }
.provider-icon { display: block; flex: 0 0 2.5rem; width: 2.5rem; height: 2.5rem; }
.provider-button:focus-visible { outline: .25rem solid #face00; outline-offset: .15rem; }

.password-field { position: relative; }
.password-field input { min-height: 3rem; padding-inline-end: 3.25rem; }
.password-toggle {
    position: absolute;
    inset-inline-end: .125rem;
    top: .125rem;
    display: grid;
    place-items: center;
    width: 2.75rem;
    min-height: 2.75rem;
    margin: 0;
    border-radius: .125rem;
    color: #075f45;
    background: transparent;
}
.password-toggle:hover { color: #064c38; background: #ecf3ec; }
.password-toggle:focus-visible { outline-offset: -.2rem; }
.password-toggle[hidden], .password-toggle-icon--hide { display: none; }
.password-toggle[aria-pressed="true"] .password-toggle-icon--show { display: none; }
.password-toggle[aria-pressed="true"] .password-toggle-icon--hide { display: block; }
.login-divider { display: flex; align-items: center; gap: .75rem; margin: 1rem 0; color: #565c65; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; border-top: 1px solid #dfe1e2; }
