:root {
    color-scheme: light;
    --ink: #183b32;
    --muted: #626e69;
    --forest: #123d30;
    --lime: #cfef85;
    --line: #dfe5dc;
    --paper: #f7f8f3;
}
* { box-sizing: border-box; }
body.public-page { margin: 0; background: var(--paper); color: var(--ink); font-family: "Segoe UI", Arial, sans-serif; font-size: 15px; line-height: 1.65; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--forest); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
button, input { font: inherit; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #719b22; outline-offset: 4px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 10px 16px; background: #fff; transform: translateY(-160%); border: 1px solid var(--forest); border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.public-header { max-width: 1440px; width: 100%; margin: 0 auto; padding: 25px 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.public-brand { display: flex; align-items: center; gap: 20px; text-decoration: none; min-width: 0; }
.public-brand img { display: block; width: 190px; height: auto; }
.public-nav { display: flex; align-items: center; justify-content: flex-end; gap: 26px; flex-shrink: 0; font-size: 13px; }
.public-nav a { text-decoration: none; padding: 8px 0; }
.public-nav a:hover, .public-nav a[aria-current="page"] { text-decoration: underline; }
.public-nav .nav-action { padding: 9px 15px; border: 1px solid #c6d1c1; border-radius: 8px; display: flex; gap: 12px; align-items: center; }
.public-main { flex: 1; width: 100%; }
.public-main:focus { outline: none; }
.public-notice { max-width: 1250px; margin: 12px auto; padding: 14px 24px; background: #eaf3dc; border: 1px solid #bdd4a2; border-radius: 10px; }
.public-footer { max-width: 1440px; width: 100%; padding: 26px 48px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 11px; color: var(--muted); }
.public-footer p { margin: 0; }
.public-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.public-footer a { color: var(--muted); text-decoration: none; }
.public-footer a:hover { text-decoration: underline; }
.eyebrow { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1.7px; line-height: 1.5; color: #587040; }
.primary-button { display: inline-flex; justify-content: center; align-items: center; gap: 24px; padding: 13px 22px; background: var(--forest); color: #fff; border: 1px solid var(--forest); border-radius: 9px; font-size: 14px; font-weight: 600; text-decoration: none; min-height: 48px; transition: background .15s; }
.primary-button:hover { background: #20543e; }
.primary-button span { font-size: 20px; line-height: 1; }
body.login-page { background: radial-gradient(ellipse at 5% 10%, #18564336, transparent 50%), radial-gradient(ellipse at 95% 95%, #9acbae40, transparent 48%), #eef4ef; }
.login-page .public-main { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 16px 32px; }
.login-shell { display: grid; grid-template-columns: 1.02fr 1fr; width: 100%; max-width: 1180px; margin: auto; border: 1px solid #b9cfbe; border-radius: 28px; overflow: hidden; background: #fff; box-shadow: 0 24px 70px #103c3420, 0 2px 8px #103c3408; }
.login-story { position: relative; isolation: isolate; overflow: hidden; padding: 24px 38px; background: radial-gradient(ellipse at 110% 75%, #34753c8c, transparent 52%), linear-gradient(135deg, #062f29, #0c503c); color: #fff; display: flex; flex-direction: column; justify-content: space-between; }
.story-content { position: relative; }
.story-brand { width: 218px; max-width: 75%; }
.story-brand img { display: block; width: 100%; height: auto; filter: brightness(1.55); }
.login-story h1 { font-size: clamp(32px, 3.25vw, 42px); font-weight: 650; line-height: 1.08; letter-spacing: -1.5px; margin: 16px 0 12px; }
.login-story h1 span { color: #a8ed77; }
.story-intro { color: #d2e5df; font-size: 13px; line-height: 1.6; margin: 0; max-width: 420px; }
.story-features { display: grid; gap: 11px; margin: 20px 0; }
.story-feature { display: flex; gap: 14px; align-items: flex-start; }
.auth-icon { display: block; width: 20px; height: 20px; flex-shrink: 0; }
.feature-icon { flex-shrink: 0; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; border: 1px solid #4d9a7975; background: linear-gradient(145deg, #1b69518c, #0a45385c); color: #b2ef81; box-shadow: inset 0 1px #c0ffe312; }
.feature-icon .auth-icon { width: 21px; height: 21px; }
.story-feature h2 { margin: -2px 0 3px; color: #f8fff1; font-size: 13px; font-weight: 650; }
.story-feature p { margin: 0; font-size: 12px; line-height: 1.5; color: #c6d6c5; }
.story-google { border-top: 1px solid #8fb7a33b; padding-top: 12px; }
.story-google h2 { font-size: 12px; margin: 0 0 5px; font-weight: 600; color: #f0f9e5; }
.story-google p { margin: 0 0 6px; font-size: 11px; line-height: 1.6; color: #d0ddd1; }
.story-google p:last-child { margin-bottom: 0; }
.story-google a, .story-footer a { color: var(--lime); }
.story-footer { position: relative; padding-top: 14px; }
.story-footer nav { display: flex; flex-wrap: wrap; gap: 6px 19px; font-size: 11px; }
.story-footer p { margin: 10px 0 0; color: #c6d6c5; font-size: 10px; line-height: 1.5; }
.story-orbit { position: absolute; width: 640px; height: 760px; border-radius: 50%; border: 1px solid #9bf0c023; right: -495px; top: 40px; background: linear-gradient(155deg, #7ece7519, #77ca6630 55%, transparent); box-shadow: 0 0 0 50px #83d57c08, 0 0 0 51px #b9f6bb0a; transform: rotate(22deg); z-index: -1; }
.story-energy-pattern { position: absolute; width: 380px; height: 150px; bottom: -90px; right: -45px; transform: rotate(-18deg); background: repeating-linear-gradient(90deg, transparent 0 46px, #b5edbb12 46px 47px), repeating-linear-gradient(0deg, transparent 0 28px, #b5edbb12 28px 29px); z-index: -1; }
.login-form-panel { display: flex; align-items: center; justify-content: center; padding: 26px 44px; background: linear-gradient(155deg, #fff, #fbfdfc); }
.login-form-inner { width: 100%; max-width: 410px; }
.team-access-badge { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 20px; color: #17613d; background: #eaf6ed; font-size: 10px; letter-spacing: 1.1px; }
.team-access-badge .auth-icon { width: 13px; height: 13px; }
.login-form-inner h2 { font-size: 36px; line-height: 1.15; font-weight: 700; letter-spacing: -1.2px; margin: 12px 0 8px; color: #102f2b; }
.form-intro { color: #68766f; font-size: 13px; margin: 0 0 18px; }
.google-sign-in { display: table; border-radius: 5px; margin: 0 auto; line-height: 0; }
.google-sign-in img { display: block; width: 212.4px; max-width: 100%; height: auto; }
.google-sign-in:hover { box-shadow: 0 2px 7px #183b321f; }
.login-divider { display: flex; align-items: center; gap: 14px; font-size: 11px; color: #6d7770; margin: 16px 0; }
.login-divider::before, .login-divider::after { content: ""; height: 1px; background: #e0e5dc; flex: 1; }
.signin-form { display: grid; gap: 12px; }
.form-field label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 600; color: #31493b; }
.form-field input { width: 100%; min-width: 0; border: 1px solid #d0dbd6; border-radius: 9px; background: #fff; padding: 12px 14px 12px 42px; height: 48px; color: #1d352a; font-size: 14px; box-shadow: 0 1px 2px #17392c04; }
.form-field input::placeholder { color: #778075; }
.form-field input:focus { outline: 2px solid #8bab61; outline-offset: 1px; border-color: #5f833f; background: #fff; }
.form-field input[aria-invalid="true"] { border-color: #b74332; }
.input-wrap, .password-field { position: relative; }
.input-icon { position: absolute; left: 14px; top: 15px; width: 18px; height: 18px; color: #778a80; pointer-events: none; }
.password-field input { padding-right: 70px; }
.password-toggle { position: absolute; right: 5px; top: 5px; height: 38px; min-width: 54px; padding: 0 10px; background: transparent; border: 0; border-radius: 5px; color: #425e3b; font-size: 12px; font-weight: 600; }
.password-toggle:hover { background: #edf2e7; }
.remember-field { display: flex; gap: 9px; align-items: center; font-size: 12px; color: #556450; cursor: pointer; }
.remember-field input { width: 16px; height: 16px; margin: 0; accent-color: var(--forest); }
.signin-submit { width: 100%; justify-content: center; gap: 14px; border: 0; background: linear-gradient(110deg, #0a7952, #07543c); box-shadow: 0 6px 15px #096b4321; }
.signin-submit:hover { background: linear-gradient(110deg, #086645, #064730); }
.field-error { font-size: 12px; color: #a22a21; margin: 7px 0 0; }
.signin-legal { color: var(--muted); font-size: 11px; margin: 14px 0; line-height: 1.7; }
.signin-legal a { color: #385833; }
.signin-help { margin-top: 14px; padding: 10px 12px; border: 1px solid #deece3; background: #f1f8f4; border-radius: 10px; display: flex; gap: 10px; align-items: center; }
.help-mark { border: 0; background: #14734e; border-radius: 50%; width: 20px; height: 20px; display: grid; place-items: center; font-size: 11px; color: #fff; flex-shrink: 0; }
.signin-help p { margin: 0; font-size: 11px; color: #334a34; }
.legal-shell { max-width: 1120px; margin: 0 auto; padding: 24px 28px 60px; }
.legal-heading { border-bottom: 1px solid var(--line); padding: 12px 0 34px; }
.legal-back { display: inline-block; font-size: 12px; color: var(--muted); text-decoration: none; margin-bottom: 40px; }
.legal-heading h1 { font-size: clamp(38px, 5vw, 54px); font-weight: 500; line-height: 1.15; letter-spacing: -1.9px; margin: 17px 0; }
.legal-intro { font-size: 16px; color: var(--muted); max-width: 620px; }
.legal-updated { font-size: 12px; color: #6b7565; margin: 21px 0 0; }
.legal-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 64px; padding-top: 38px; align-items: start; }
.legal-sidebar { position: sticky; top: 24px; }
.legal-sidebar nav { display: grid; gap: 5px; }
.legal-sidebar nav h2 { margin: 0 0 12px; font-size: 10px; letter-spacing: 1.6px; color: #718065; }
.legal-sidebar nav a { color: #52624a; font-size: 12px; text-decoration: none; padding: 7px 0; }
.legal-sidebar nav a:hover { color: var(--forest); text-decoration: underline; }
.legal-contact { padding: 21px; border: 1px solid #dce5d2; border-radius: 12px; background: #edf3e6; margin-top: 25px; }
.legal-contact h2 { font-size: 14px; margin: 0; }
.legal-contact p { font-size: 12px; color: #5b6b51; }
.legal-contact a { font-size: 13px; font-weight: 600; }
.legal-content { background: #fff; padding: 34px 38px; border: 1px solid #e0e6da; border-radius: 16px; min-width: 0; }
.legal-content section { scroll-margin-top: 24px; }
.legal-content section + section { border-top: 1px solid #e8ede3; margin-top: 30px; padding-top: 28px; }
.legal-content h2 { font-size: 21px; font-weight: 600; letter-spacing: -.35px; line-height: 1.4; margin: 0 0 15px; }
.legal-content h3 { font-size: 15px; margin: 23px 0 10px; }
.legal-content p, .legal-content li { color: #536050; font-size: 14px; line-height: 1.9; }
.legal-content p { margin: 0 0 14px; }
.legal-content p:last-child { margin-bottom: 0; }
.legal-content strong { color: #344c31; font-weight: 600; }
.legal-content ul { padding-left: 22px; margin: 0 0 16px; }
.legal-content li + li { margin-top: 10px; }
.legal-content code { font-size: 12px; background: #f0f4eb; color: #36542a; padding: 2px 4px; border-radius: 4px; overflow-wrap: anywhere; }
.legal-callout { padding: 18px 20px; border-left: 3px solid #8bb849; background: #f3f7ed; border-radius: 0 8px 8px 0; margin: 20px 0; font-size: 13px; }
.legal-callout p { margin-top: 7px; font-size: 13px; }
@media (max-width: 1050px) {
    .public-header { padding: 22px 28px; }
    .public-nav { gap: 18px; }
    .login-page .public-main { padding: 16px; }
    .login-story { padding: 24px; }
    .login-form-panel { padding: 26px; }
    .public-footer { padding: 24px 28px; flex-wrap: wrap; }
    .footer-trading { display: block; }
    .legal-grid { gap: 32px; grid-template-columns: 205px minmax(0, 1fr); }
    .legal-content { padding: 28px; }
}
@media (max-width: 760px) {
    .public-header { flex-wrap: wrap; padding: 20px 22px 14px; gap: 16px; }
    .public-brand { gap: 15px; }
    .public-brand img { width: 140px; }
    .public-nav { width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 10px 24px; font-size: 12px; }
    .public-nav .nav-action { margin-left: auto; }
    .login-page .public-main { padding: 12px; }
    .login-shell { grid-template-columns: 1fr; border-radius: 18px; }
    .login-story { padding: 24px; }
    .login-story h1 { font-size: 32px; letter-spacing: -1.2px; margin: 16px 0 10px; }
    .story-intro { font-size: 13px; }
    .story-orbit { width: 300px; height: 300px; top: 0; right: -260px; }
    .login-form-panel { padding: 26px 24px; }
    .login-form-inner { max-width: 440px; }
    .login-form-inner h2 { font-size: 30px; }
    .form-field input { font-size: 16px; }
    .public-footer { padding: 23px; gap: 12px; }
    .public-footer nav { gap: 8px 18px; }
    .legal-shell { padding: 10px 22px 35px; }
    .legal-back { margin-bottom: 27px; }
    .legal-heading { padding-bottom: 24px; }
    .legal-heading h1 { letter-spacing: -1.1px; }
    .legal-intro { font-size: 14px; }
    .legal-grid { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
    .legal-sidebar { position: static; }
    .legal-sidebar nav { grid-template-columns: 1fr 1fr; gap: 2px 14px; }
    .legal-sidebar nav h2 { grid-column: 1 / -1; }
    .legal-sidebar nav a { font-size: 11px; }
    .legal-contact { display: none; }
    .legal-content { padding: 25px 22px; border-radius: 12px; }
    .legal-content h2 { font-size: 20px; }
    .legal-content p, .legal-content li { font-size: 14px; }
}
@media (max-width: 380px) {
    .public-brand img { width: 122px; }
    .public-brand { gap: 12px; }
    .public-nav { gap: 7px 15px; }
    .public-nav .nav-action { padding: 7px 10px; }
    .login-story, .login-form-panel { padding: 22px; }
    .story-brand { max-width: 85%; }
    .legal-shell { padding-left: 16px; padding-right: 16px; }
    .legal-content { padding: 22px 18px; }
}
@media (min-width: 761px) and (max-height: 700px) {
    .login-page .public-main { padding-top: 12px; padding-bottom: 12px; }
    .login-story { padding-top: 20px; padding-bottom: 20px; }
    .login-story h1 { font-size: 36px; margin: 14px 0 10px; }
    .story-brand { width: 190px; }
    .story-features { gap: 9px; margin: 15px 0; }
    .story-google { padding-top: 10px; }
    .story-footer { padding-top: 12px; }
    .story-footer p { margin-top: 7px; }
    .login-form-panel { padding-top: 20px; padding-bottom: 20px; }
    .login-form-inner h2 { font-size: 32px; margin-top: 10px; }
    .form-intro { margin-bottom: 15px; }
    .login-divider { margin: 12px 0; }
    .signin-form { gap: 11px; }
    .signin-help { padding-top: 10px; margin-top: 10px; }
}
@media (min-width: 761px) and (max-height: 640px) {
    .login-page .public-main { padding-top: 8px; padding-bottom: 8px; }
    .login-story { padding-top: 12px; padding-bottom: 12px; }
    .login-form-panel { padding-top: 12px; padding-bottom: 12px; }
    .story-brand { width: 172px; }
    .login-story h1 { font-size: 32px; margin-top: 12px; }
    .story-features { gap: 7px; margin: 12px 0; }
    .story-footer p { margin-top: 5px; }
    .form-intro { margin-bottom: 12px; }
    .login-divider { margin: 9px 0; }
    .signin-legal { margin: 10px 0; }
    .signin-help { padding-top: 8px; padding-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media print {
    body.public-page { background: white; color: black; }
    .public-header, .public-footer, .legal-sidebar, .legal-back { display: none; }
    .legal-shell { max-width: none; padding: 0; }
    .legal-grid { display: block; padding-top: 20px; }
    .legal-content { border: 0; padding: 0; }
    .legal-content h2, .legal-content h3 { break-after: avoid; }
    .legal-content a { color: inherit; }
}
