:root {
    color-scheme: light;
    --paper: #f7f5f1;
    --ink: #0e1b2c;
    --muted: #5d6874;
    --line: #d8dddc;
    --surface: #ffffff;
    --soft: #e3efed;
    --green: #0b5d5a;
    --forest: #084846;
    --coral: #e88b69;
    --coral-deep: #b9431f;
    --success: #178a50;
    --warning: #b97d10;
    --danger: #c93a3a;
    --blush: #fbece6;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

body {
    min-width: 320px;
    background: var(--paper);
    color: var(--ink);
}

button,
input {
    font: inherit;
}

.shell {
    display: grid;
    height: 100vh;
    height: 100dvh;
    grid-template-columns: minmax(320px, 0.92fr) minmax(480px, 1.08fr);
    overflow: hidden;
}

.branding {
    position: relative;
    display: flex;
    height: 100%;
    min-height: 0;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 36px 44px;
    background-color: var(--green);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 48px 48px;
    color: #f7fbf9;
}

.branding::after {
    content: none;
}

.brand,
.mobile {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    font-size: 1.1rem;
    font-weight: 750;
    text-decoration: none;
}

.branding .brand img {
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
}

.intro {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: auto 0;
    padding: 36px 0;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--green);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.intro .eyebrow {
    color: #8ed3bc;
}

.intro h1 {
    max-width: 12ch;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3.4rem;
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: 0;
}

.intro > p:last-child {
    max-width: 500px;
    margin: 18px 0 0;
    color: #c2d7d0;
    font-size: 1rem;
    line-height: 1.5;
}

.status {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #c2d7d0;
    font-size: 0.875rem;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--coral);
    box-shadow: 0 0 0 5px rgba(232, 139, 105, 0.15);
}

.access {
    display: grid;
    height: 100%;
    min-height: 0;
    place-items: center;
    padding: 24px;
    background: var(--paper);
}

.content {
    width: min(100%, 390px);
}

.mobile {
    display: none;
    margin-bottom: 28px;
}

.content header {
    margin-bottom: 22px;
}

.content h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: 0;
}

.content header > p:last-child {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.45;
}

.alert {
    display: grid;
    gap: 3px;
    margin-bottom: 16px;
    border-left: 3px solid var(--danger);
    padding: 10px 12px;
    background: var(--blush);
    color: #772c2c;
    font-size: 0.875rem;
    line-height: 1.45;
}

.field {
    margin-bottom: 14px;
}

.field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.875rem;
    font-weight: 700;
}

.field input {
    width: 100%;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 6px;
    outline: none;
    padding: 0 15px;
    background: var(--surface);
    color: var(--ink);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input::placeholder {
    color: #92a09b;
}

.field input:hover {
    border-color: #a8b6b1;
}

.field input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(23, 116, 92, 0.12);
}

.field input[aria-invalid="true"] {
    border-color: var(--danger);
}

.password {
    position: relative;
}

.password input {
    padding-right: 50px;
}

.toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    display: grid;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 5px;
    place-items: center;
    padding: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transform: translateY(-50%);
}

.toggle:hover,
.toggle:focus-visible {
    background: var(--soft);
    color: var(--ink);
}

.toggle svg,
.submit svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.conceal,
.toggle[aria-pressed="true"] .reveal {
    display: none;
}

.toggle[aria-pressed="true"] .conceal {
    display: block;
}

.error {
    display: block;
    margin-top: 7px;
    color: var(--danger);
    font-size: 0.8rem;
}

.submit {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 6px;
    margin-top: 18px;
    padding: 10px 18px;
    background: var(--green);
    color: #fff;
    font-weight: 750;
    cursor: pointer;
    transition: background 160ms ease, transform 160ms ease;
}

.submit:hover {
    background: var(--forest);
}

.submit:active {
    transform: translateY(1px);
}

.submit:focus-visible {
    outline: 3px solid rgba(23, 116, 92, 0.25);
    outline-offset: 3px;
}

.support {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.5;
    text-align: center;
}

.support a {
    color: var(--green);
    font-weight: 750;
    text-decoration: none;
}

.support a:hover,
.support a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.enroll .content header {
    margin-bottom: 14px;
}

.enroll .field {
    margin-bottom: 9px;
}

.enroll .field input {
    height: 43px;
}

.enroll .error {
    margin-top: 3px;
    font-size: 0.75rem;
    line-height: 1.2;
}

.enroll .submit {
    min-height: 43px;
    margin-top: 12px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.enroll .support {
    margin-top: 10px;
}

@media (max-width: 820px) {
    .shell {
        display: block;
    }

    .branding {
        display: none;
    }

    .access {
        width: 100%;
        padding: 24px 20px;
    }

    .mobile {
        display: inline-flex;
    }

    .enroll .access {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .enroll .mobile {
        margin-bottom: 14px;
    }
}

@media (max-height: 760px) {
    .branding {
        padding: 30px 40px;
    }

    .intro {
        padding: 28px 0;
    }

    .intro h1 {
        font-size: 3.2rem;
    }

    .intro > p:last-child {
        margin-top: 18px;
        line-height: 1.5;
    }

    .access {
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .mobile {
        margin-bottom: 22px;
    }

    .content header {
        margin-bottom: 20px;
    }

    .content h2 {
        font-size: 2.1rem;
    }

    .content header > p:last-child {
        margin-top: 8px;
    }

    .alert {
        margin-bottom: 14px;
        padding-top: 9px;
        padding-bottom: 9px;
    }

    .field {
        margin-bottom: 14px;
    }

    .field label {
        margin-bottom: 6px;
    }

    .field input {
        height: 48px;
    }

    .submit {
        min-height: 48px;
        margin-top: 18px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .support {
        margin-top: 16px;
    }
}

@media (max-height: 580px) {
    .access {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .mobile {
        margin-bottom: 12px;
    }

    .content header {
        margin-bottom: 12px;
    }

    .content h2 {
        font-size: 1.75rem;
    }

    .content header > p:last-child {
        margin-top: 5px;
        line-height: 1.35;
    }

    .eyebrow {
        margin-bottom: 7px;
    }

    .alert {
        gap: 0;
        margin-bottom: 8px;
        padding: 6px 10px;
        line-height: 1.25;
    }

    .field {
        margin-bottom: 9px;
    }

    .field input {
        height: 43px;
    }

    .submit {
        min-height: 43px;
        margin-top: 10px;
        padding: 8px 16px;
    }

    .support {
        margin-top: 9px;
        line-height: 1.3;
    }
}

@media (max-width: 420px) {
    .access {
        place-items: start stretch;
        padding-top: 20px;
    }

    .mobile {
        margin-bottom: 24px;
    }

    .content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 420px) and (max-height: 760px) {
    .access {
        padding-top: 22px;
    }

    .mobile {
        margin-bottom: 22px;
    }

    .content h2 {
        font-size: 2.1rem;
    }
}

@media (max-width: 420px) and (max-height: 580px) {
    .access {
        padding-top: 14px;
    }

    .mobile {
        margin-bottom: 12px;
    }

    .content h2 {
        font-size: 1.75rem;
    }
}

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