:root {
  color-scheme: light;
  --ink: #102d21;
  --ink-soft: #214b35;
  --leaf: #52753c;
  --acid: #ddeb5d;
  --paper: #f4f2e8;
  --line: rgba(18, 48, 34, .14);
  --danger: #a44137;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #102d21; }
body { min-height: 100vh; margin: 0; overflow-x: hidden; background: radial-gradient(circle at 18% 14%, rgba(122, 164, 68, .32), transparent 25%), radial-gradient(circle at 83% 9%, rgba(219, 235, 86, .14), transparent 22%), linear-gradient(145deg, #0b241a, #173e2b 56%, #0a2018); color: var(--ink); }
body::before { position: fixed; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px); background-size: 32px 32px; content: ""; mask-image: linear-gradient(to bottom, black, transparent 75%); }
a { color: inherit; }
.canopy { position: fixed; z-index: 0; width: 420px; height: 420px; border-radius: 48% 52% 35% 65%; background: radial-gradient(ellipse at 70% 70%, rgba(213, 230, 87, .27), transparent 18%), repeating-radial-gradient(ellipse at center, #466c36 0 14px, #244d31 15px 29px, transparent 30px 46px); opacity: .26; filter: blur(1px); pointer-events: none; }
.canopy-left { top: -260px; left: -150px; transform: rotate(20deg); }
.canopy-right { right: -190px; bottom: -280px; transform: rotate(-38deg); }
.site-head { position: relative; z-index: 2; display: flex; width: min(1100px, calc(100% - 36px)); min-height: 94px; margin: 0 auto; align-items: center; justify-content: space-between; gap: 20px; color: white; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand > span { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.18); border-radius: 13px; background: rgba(255,255,255,.09); font-size: 20px; }
.brand b { font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
.brand em { color: var(--acid); font-style: normal; }
.site-head > small { color: rgba(255,255,255,.58); font-size: 10px; }
.auth-shell { position: relative; z-index: 1; display: grid; width: min(940px, calc(100% - 36px)); min-height: 590px; margin: 38px auto 70px; grid-template-columns: minmax(0, 1.05fr) minmax(310px, .75fr); overflow: hidden; border: 1px solid rgba(255,255,255,.2); border-radius: 28px; box-shadow: 0 35px 90px rgba(0, 12, 7, .35); }
.auth-card { padding: 52px 58px; background: var(--paper); }
.card-head { margin-bottom: 30px; }
.card-head p { margin: 0 0 7px; color: #71923e; font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.card-head h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(36px, 5vw, 56px); font-weight: 500; letter-spacing: -.04em; }
form { display: grid; gap: 16px; }
label { display: grid; gap: 7px; }
label > span { color: #4e5f54; font-size: 10px; font-weight: 850; }
label > small { color: #7b877f; font-size: 9px; }
input { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid #cad0c5; border-radius: 11px; outline: none; background: rgba(255,255,255,.82); color: var(--ink); font: inherit; font-size: 14px; transition: border-color .18s, box-shadow .18s; }
input:focus { border-color: #668a43; box-shadow: 0 0 0 4px rgba(119, 151, 68, .13); }
button, .button-link { display: inline-flex; min-height: 48px; padding: 0 21px; align-items: center; justify-content: center; border: 0; border-radius: 11px; background: var(--ink); color: white; font: inherit; font-size: 11px; font-weight: 900; text-decoration: none; cursor: pointer; }
form > button { margin-top: 4px; }
button:hover, .button-link:hover { background: var(--ink-soft); }
.form-switch { margin: 21px 0 0; color: #78847c; font-size: 10px; text-align: center; }
.form-switch a, .form-links a { color: var(--leaf); font-weight: 850; }
.form-links { display: flex; margin-top: 21px; justify-content: space-between; gap: 15px; font-size: 10px; }
.form-copy { margin: -4px 0 24px; color: #6f7c73; font-size: 11px; line-height: 1.65; }
.notice { margin-bottom: 18px; padding: 12px 14px; border: 1px solid #e0b8b0; border-radius: 10px; background: #f8e9e5; color: var(--danger); font-size: 10px; line-height: 1.5; }
.notice-success { border-color: #bdd3a8; background: #eaf2df; color: #446531; }
.jungle-aside { position: relative; display: flex; overflow: hidden; padding: 52px 45px; flex-direction: column; justify-content: center; background: linear-gradient(155deg, rgba(28, 75, 47, .7), rgba(6, 29, 20, .94)), radial-gradient(circle at 30% 10%, #a0b94c, transparent 28%); color: white; }
.jungle-aside::after { position: absolute; right: -80px; bottom: -105px; width: 260px; height: 320px; border: 34px solid rgba(216, 232, 87, .10); border-radius: 48% 52% 12% 88%; content: ""; transform: rotate(-28deg); }
.aside-mark { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 14px; background: var(--acid); color: var(--ink); font-size: 19px; }
.jungle-aside > p { margin: 20px 0 7px; color: var(--acid); font-size: 9px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.jungle-aside h2 { margin: 0; font-family: Georgia, serif; font-size: 39px; font-weight: 500; line-height: 1.04; }
.jungle-aside h2 em { color: var(--acid); font-style: italic; }
.jungle-aside ul { display: grid; gap: 11px; margin: 30px 0; padding: 0; list-style: none; color: rgba(255,255,255,.72); font-size: 10px; }
.jungle-aside li::before { margin-right: 8px; color: var(--acid); content: "✓"; font-weight: 900; }
.jungle-aside > small { position: relative; z-index: 1; max-width: 270px; color: rgba(255,255,255,.43); font-size: 8px; line-height: 1.6; }
.result { display: grid; gap: 15px; margin-bottom: 25px; justify-items: start; color: #66746a; font-size: 12px; line-height: 1.65; }
.result > span { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: #dfecc7; color: #4f7739; font-size: 22px; font-weight: 950; }
.result-error > span { background: #f2d7d0; color: var(--danger); }
.result p { margin: 0; }
.account-card { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.65); }
.account-avatar { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; background: var(--ink); color: var(--acid); font-size: 15px; font-weight: 900; }
.account-card > div { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.account-card small, .account-next small { color: #839087; font-size: 8px; font-weight: 850; text-transform: uppercase; }
.account-card strong { font-size: 13px; }
.account-card p { overflow: hidden; margin: 0; color: #79867d; font-size: 9px; text-overflow: ellipsis; }
.account-card > b { padding: 6px 8px; border-radius: 999px; background: #e8eed8; color: #5c793e; font-size: 8px; }
.account-next { display: grid; gap: 5px; margin: 18px 0; padding: 17px; border-radius: 14px; background: var(--ink); color: white; }
.account-next strong { font-family: Georgia, serif; font-size: 18px; font-weight: 500; }
.account-next p { margin: 0; color: rgba(255,255,255,.58); font-size: 9px; line-height: 1.55; }
.logout-form button { width: 100%; background: transparent; color: var(--ink); border: 1px solid #bfc8bc; }
footer { position: relative; z-index: 1; padding: 0 18px 30px; color: rgba(255,255,255,.4); font-size: 8px; text-align: center; }
footer nav { color: #e6edcf; font-size: 13px; }
footer nav a { display: inline-block; padding: 8px 6px; text-underline-offset: 3px; }
footer p { color: #c6d5bb; font-size: 11px; line-height: 1.6; }
footer small { font-size: 10px; }
.privacy-note { margin: 15px 0 0; color: #526650; font-size: 11px; line-height: 1.75; }
.privacy-note a { color: #315b2e; font-weight: 700; text-underline-offset: 2px; }
form .privacy-note { margin-top: 0; }

@media (max-width: 760px) {
  .site-head { min-height: 78px; }
  .site-head > small { display: none; }
  .auth-shell { margin-top: 20px; grid-template-columns: 1fr; }
  .auth-card { padding: 34px 28px; }
  .jungle-aside { min-height: 350px; padding: 35px 28px; }
}

@media (max-width: 430px) {
  .brand b { font-size: 17px; }
  .auth-shell { width: calc(100% - 22px); border-radius: 21px; }
  .auth-card { padding: 29px 20px; }
  .card-head h1 { font-size: 38px; }
  .form-links { align-items: flex-start; flex-direction: column; }
  .account-card { grid-template-columns: auto 1fr; }
  .account-card > b { grid-column: 2; justify-self: start; }
}
