:root {
    color-scheme: light;
    font: -apple-system-body;
    font-family: system-ui, sans-serif;
    font-size: 17px;
    color: #17362b;
    background: #f7f5ed;
    --green: #0a4d2e;
}
* { box-sizing: border-box; }
body {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    display: flex;
    flex-direction: column;
}
.brand, main, .account-footer {
    width: 100%;
    max-width: 34rem;
    margin-inline: auto;
}
.brand {
    padding: calc(1.7rem + env(safe-area-inset-top)) 1rem 0;
    color: var(--green);
    font-weight: 700;
}
main { padding: clamp(2.4rem, 11vw, 3.2rem) 1.25rem 1.25rem; }
.account-footer {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    padding: 0 1rem calc(1rem + env(safe-area-inset-bottom));
}
.back {
    display: inline-flex;
    gap: .75rem;
    align-items: center;
    min-height: 52px;
    padding: .75rem 1.5rem;
    border-radius: 2rem;
    background: var(--green);
    color: white;
    font-weight: 700;
    text-decoration: none;
}
.back::before {
    content: "";
    width: .5em;
    height: .5em;
    border: solid currentColor;
    border-width: 0 0 .11em .11em;
    transform: rotate(45deg);
}
h1 { margin: 0 0 1.35rem; font-size: clamp(1.8rem, 7.6vw, 2.3rem); line-height: 1.18; letter-spacing: -.025em; }
.account-card { padding: 1.25rem; background: #fffdfa; border: 1px solid #afbfad; border-radius: 1.15rem; }
.account-card p { margin: 0 0 1rem; line-height: 1.45; }
.account-card .form-intro, .account-card > p:last-child { margin-bottom: 0; }
form { display: grid; gap: 1.3rem; }
label, .password-field { display: grid; gap: .55rem; }
.password-row { display: flex; align-items: center; gap: .5rem; }
input, button { font: inherit; }
input { width: 100%; min-width: 0; min-height: 50px; padding: .7rem; border: 1px solid #87aa98; border-radius: .75rem; background: #fdfefd; color: inherit; font-size: max(16px, 1em); }
button { min-height: 44px; cursor: pointer; }
.primary, .toggle { border: 0; background: var(--green); color: white; }
.primary { justify-self: start; padding: .75rem 1.25rem; border-radius: 1rem; min-height: 52px; font-weight: 700; }
.toggle { display: grid; place-items: center; flex: 0 0 46px; height: 46px; padding: 0; border-radius: .95rem; }
.toggle .slash { display: none; }
.toggle.is-visible .slash { display: initial; }
nav { display: grid; justify-items: start; margin-top: 1rem; }
nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--green); text-underline-offset: .15em; }
.error { color: #9c2828; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #0a4d2e; outline-offset: 3px; }

.account-access .brand { padding-inline: 1rem; }
.account-access main { padding-inline: 1.25rem; padding-top: clamp(2.4rem, 11vw, 3.2rem); }
.account-access h1 { font-size: clamp(1.7rem, 7.8vw, 2.2rem); margin-bottom: 1.45rem; }
.account-access .account-card { padding: 1.25rem; }
.account-access .account-card nav { gap: .15rem; }
.account-access .account-card nav a { min-height: 44px; }
.account-access .account-footer { padding-inline: 1rem; }
.account-open { display: inline-flex; align-items: center; text-decoration: none; }

.account-access .account-footer {
    position: fixed;
    right: calc(1rem + env(safe-area-inset-right));
    bottom: calc(1rem + env(safe-area-inset-bottom));
    width: auto;
    margin: 0;
    padding: 0;
    z-index: 20;
}
.account-access:has(.account-footer) main {
    padding-bottom: calc(6rem + env(safe-area-inset-bottom));
}
