:root {
    color-scheme: light;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #182822;
    background: #f6f7f3;
    font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 32px; }
.portal {
    width: min(100%, 1000px);
    min-height: 580px;
    display: grid;
    grid-template-columns: 45% 55%;
    overflow: hidden;
    border: 1px solid #e5e9e2;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 22px 80px #24372b14, 0 3px 12px #24372b0a;
}
.brand {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 36px 40px;
    color: #f4faed;
    background: radial-gradient(ellipse at 52% 42%, #3b6350, transparent 65%), linear-gradient(155deg, #1d362d, #10241e 78%);
}
.wordmark { position: relative; z-index: 1; margin: 0; font-size: 28px; font-weight: 750; letter-spacing: -.065em; }
.wordmark span { color: #c7ed90; }
.art { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.orbit { position: absolute; width: 67%; aspect-ratio: 1; border: 1px solid #c9e5bc50; border-radius: 50%; }
.orbit-outer { width: 83%; border-style: dashed; opacity: .45; }
.orbit-inner::after {
    content: "";
    position: absolute;
    right: 14%;
    top: 12%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d4f3a3;
    box-shadow: 0 0 16px #ccf0a1b0;
}
.axis { width: 94%; height: 1px; transform: rotate(-29deg); background: linear-gradient(90deg, transparent, #b3d6a24f, transparent); }
.emblem {
    position: absolute;
    width: 38%;
    max-width: 158px;
    aspect-ratio: 1;
    padding: 15px;
    display: grid;
    place-items: center;
    background: #e8f3d8;
    border: 1px solid #fffc;
    border-radius: 31%;
    box-shadow: 0 16px 44px #0a1c1777, 0 0 0 12px #d4edbe14;
    transform: rotate(-8deg);
}
.emblem img { width: 100%; height: auto; display: block; transform: rotate(8deg); }
.brand-copy { position: relative; z-index: 1; }
.brand-kicker { margin: 0 0 10px; color: #c7ed90; font-size: 12px; font-weight: 700; letter-spacing: .18em; }
.brand-title { margin: 0; font-size: 28px; font-weight: 680; letter-spacing: .04em; }
.brand-description { margin: 12px 0 0; color: #c8d9cd; font-size: 14px; line-height: 1.65; }
.panel { display: grid; place-items: center; padding: 52px 45px; }
.panel-inner { width: min(100%, 360px); }
h1 { margin: 0 0 12px; font-size: 37px; font-weight: 720; line-height: 1.18; letter-spacing: -.055em; }
.intro { margin: 0 0 30px; color: #52625a; font-size: 15px; line-height: 1.7; }
label { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 650; }
.field { margin-bottom: 18px; }
.field input {
    width: 100%;
    height: 50px;
    border: 1px solid #cbd5cc;
    border-radius: 10px;
    color: #182822;
    background: #fbfcfa;
    font: inherit;
    padding: 0 14px;
    transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: #66776b; }
.field input:focus { border-color: #376747; box-shadow: 0 0 0 3px #37674725; outline: none; }
.password { position: relative; }
.password:has(button:not([hidden])) input { padding-right: 65px; }
.toggle {
    position: absolute;
    inset: 5px 5px 5px auto;
    min-width: 52px;
    color: #31513d;
    background: transparent;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
}
.toggle:hover { background: #e6efe4; }
.primary, .secondary {
    width: 100%;
    min-height: 50px;
    display: grid;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 10px;
    text-decoration: none;
    font: inherit;
    font-weight: 660;
    cursor: pointer;
}
.primary { margin-top: 26px; background: #214c37; color: #fff; box-shadow: 0 4px 9px #214c3725; }
.primary:hover { background: #173e2b; }
.secondary { margin-top: 12px; color: #31513d; border-color: #cbd5cc; background: #fff; }
.secondary:hover { background: #eff4ee; }
button:focus-visible, a:focus-visible { outline: 2px solid #376747; outline-offset: 3px; }
.error { margin: 0 0 16px; padding: 11px 12px; border-radius: 9px; background: #fff0ec; color: #882f28; font-size: 14px; }
.secure { margin: 20px 0 0; display: flex; gap: 8px; align-items: center; justify-content: center; color: #52625a; font-size: 12px; }
.secure::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3b7850; }

@media (max-width: 720px) {
    body { padding: 20px; }
    .portal { max-width: 470px; min-height: auto; grid-template-columns: 1fr; border-radius: 20px; }
    .brand { min-height: 164px; padding: 21px 24px; }
    .wordmark { font-size: 24px; }
    .brand-kicker { margin: 0 0 6px; font-size: 10px; }
    .brand-title { font-size: 21px; }
    .brand-description { display: none; }
    .art { inset: 0 0 0 57%; }
    .emblem { width: 58%; max-width: 82px; padding: 8px; box-shadow: 0 8px 24px #0a1c1755; }
    .panel { padding: 29px 24px 32px; }
    h1 { font-size: 30px; }
    .intro { margin-bottom: 22px; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
