:root {
    color-scheme: light dark;
    --portal-panel: #ffffff;
    --portal-ink: #173e30;
    --portal-muted: #667168;
    --portal-line: #c8d2ca;
    --portal-field: #ffffff;
    --portal-accent: #00704a;
    --portal-button: #00704a;
    --portal-error-bg: #fff2ef;
    --portal-error-ink: #842522;
}
@media (prefers-color-scheme: dark) {
    :root {
        --portal-panel: #1b342b;
        --portal-ink: #f3f4ed;
        --portal-muted: #b4c4ba;
        --portal-line: #607c6d;
        --portal-field: #11291f;
        --portal-accent: #6ad2aa;
        --portal-button: #167555;
        --portal-error-bg: #422a29;
        --portal-error-ink: #ffd2c9;
    }
}
.portal-access, .portal-access * { box-sizing: border-box; }
.portal-access {
    margin: 0;
    background: var(--portal-panel);
    color: var(--portal-ink);
    font: 16px/1.55 Arial, Helvetica, sans-serif;
}
.portal-access [hidden] { display: none !important; }
.portal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    min-height: 100vh;
    min-height: 100svh;
}
.portal-story {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 660px;
    padding: clamp(38px, 4.5vw, 72px);
    overflow: hidden;
    isolation: isolate;
    background: #183c29;
    color: #ffffff;
}
.portal-landscape {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 52% center;
    z-index: -2;
}
.portal-story::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4,32,23,.60), rgba(3,25,18,.16) 32%, rgba(3,30,21,.90));
    z-index: -1;
}
.portal-brand { display: block; width: fit-content; max-width: 100%; }
.portal-brand img { display: block; width: clamp(214px, 20vw, 280px); height: auto; max-width: 100%; }
.portal-story-copy { padding-top: 100px; max-width: 560px; }
.portal-access h1, .portal-access h2 {
    margin: 0;
    font-family: "Big Caslon", Baskerville, Georgia, serif;
    font-weight: 400;
    letter-spacing: -.025em;
}
.portal-story h2 { font-size: clamp(38px, 4.5vw, 64px); line-height: 1.13; }
.portal-story-copy p {
    max-width: 340px;
    margin: 25px 0 0;
    padding-top: 19px;
    border-top: 1px solid rgba(255,255,255,.5);
    color: #edf3ed;
    font-size: 14px;
    line-height: 1.65;
}
.portal-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 44px;
    min-width: 0;
}
.portal-content { width: 100%; max-width: 364px; }
.portal-eyebrow {
    display: block;
    margin-bottom: 15px;
    color: var(--portal-accent);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.portal-access h1 { font-size: 38px; line-height: 1.15; }
.portal-intro { margin: 15px 0 0; color: var(--portal-muted); font-size: 14px; line-height: 1.65; }
.portal-fields { display: grid; gap: 20px; margin-top: 32px; }
.portal-fields label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.portal-fields input {
    display: block;
    width: 100%;
    min-width: 0;
    height: 49px;
    padding: 11px 13px;
    border: 1px solid var(--portal-line);
    border-radius: 3px;
    background: var(--portal-field);
    color: var(--portal-ink);
    font: 16px/1.4 Arial, Helvetica, sans-serif;
}
.portal-fields input::placeholder { color: var(--portal-muted); opacity: 1; font-size: 13px; }
.portal-password { position: relative; }
.portal-password input { padding-right: 66px; }
.portal-show {
    position: absolute;
    top: 2px;
    right: 2px;
    bottom: 2px;
    width: 60px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: var(--portal-accent);
    font: 12px Arial, Helvetica, sans-serif;
    cursor: pointer;
}
.portal-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: 49px;
    margin-top: 25px;
    padding: 12px 17px;
    border: 1px solid transparent;
    border-radius: 3px;
    background: var(--portal-button);
    color: #ffffff;
    font: 15px/1.5 Arial, Helvetica, sans-serif;
    text-decoration: none;
    cursor: pointer;
}
.portal-button:hover { filter: brightness(1.1); }
.portal-button-secondary { background: transparent; border-color: var(--portal-line); color: var(--portal-ink); }
.portal-button-secondary:hover { background: var(--portal-field); filter: none; }
.portal-choices { margin-top: 32px; }
.portal-choices .portal-button { margin-top: 25px; }
.portal-choices p { margin: 8px 0 0; color: var(--portal-muted); font-size: 12px; }
.portal-footer { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 46px; font-size: 12px; }
.portal-footer a { padding: 5px 0; color: var(--portal-muted); text-decoration: underline; text-underline-offset: 4px; }
.portal-footer a:hover { color: var(--portal-accent); }
.portal-access :focus-visible { outline: 3px solid var(--portal-accent); outline-offset: 4px; }
.portal-brand:focus-visible { outline-color: #ffffff; }
.portal-error { margin-top: 24px; padding: 13px 15px; border-radius: 3px; background: var(--portal-error-bg); color: var(--portal-error-ink); font-size: 14px; }
.portal-error p { margin: 0; }
.portal-error p + p { margin-top: 8px; }
@media (max-width: 700px) {
    .portal-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
    .portal-story { min-height: 246px; padding: 25px 26px; }
    .portal-brand img { width: 190px; }
    .portal-story-copy { padding-top: 42px; }
    .portal-story h2 { max-width: 310px; font-size: 34px; }
    .portal-story-copy p { display: none; }
    .portal-landscape { object-position: center 60%; }
    .portal-main { padding: 38px 26px 32px; align-items: flex-start; }
    .portal-access h1 { font-size: 34px; }
    .portal-footer { margin-top: 32px; }
}
@media (max-width: 360px) {
    .portal-story { padding: 23px 22px; }
    .portal-main { padding: 32px 22px; }
    .portal-story h2, .portal-access h1 { font-size: 32px; }
}
@media (pointer: coarse) {
    .portal-footer a { min-height: 44px; display: flex; align-items: center; }
}
