:root {
  --ink: #13211b;
  --muted: #74827a;
  --line: #dde5e0;
  --page: #f1f5f2;
  --nav: #13241c;
  --nav-soft: #21382b;
  --lime: #c8f45e;
  --green: #2d7e59;
  --red: #cc4b46;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: "Manrope", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

.login-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(430px, 0.96fr) minmax(520px, 1.04fr); }
.login-story { position: relative; display: flex; overflow: hidden; flex-direction: column; padding: clamp(34px, 5vw, 68px); background: var(--nav); color: white; isolation: isolate; }
.login-story::before { position: absolute; z-index: -1; top: -32%; left: -18%; width: 70vw; height: 70vw; border: 1px solid rgba(200, 244, 94, 0.1); border-radius: 50%; box-shadow: 0 0 0 9vw rgba(200, 244, 94, 0.025), 0 0 0 18vw rgba(200, 244, 94, 0.018); content: ""; }
.login-story::after { position: absolute; z-index: -1; right: -110px; bottom: -120px; width: 330px; height: 330px; border-radius: 50%; background: radial-gradient(circle, rgba(74, 150, 105, 0.35), transparent 68%); content: ""; }

.login-brand { display: flex; width: max-content; align-items: center; gap: 13px; }
.login-brand__mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px 6px 13px 6px; background: var(--lime); color: var(--nav); font-family: "Onest", sans-serif; font-size: 21px; font-weight: 700; transform: rotate(-3deg); box-shadow: 0 10px 28px rgba(200, 244, 94, 0.12); }
.login-brand > span:last-child { display: flex; flex-direction: column; }
.login-brand strong { font-family: "Onest", sans-serif; font-size: 19px; letter-spacing: -0.04em; }
.login-brand small { margin-top: 3px; color: #7f9789; font-size: 8px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; }

.story-copy { max-width: 570px; margin-top: clamp(72px, 12vh, 132px); }
.story-kicker { display: flex; align-items: center; gap: 8px; color: var(--lime); font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.story-kicker i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(200, 244, 94, 0.1); }
.story-copy h1 { max-width: 550px; margin: 22px 0 20px; font-family: "Onest", sans-serif; font-size: clamp(34px, 4vw, 57px); font-weight: 600; line-height: 1.06; letter-spacing: -0.055em; }
.story-copy p { max-width: 520px; margin: 0; color: #95a79d; font-size: 13px; line-height: 1.75; }

.story-preview { width: min(480px, 90%); margin-top: clamp(48px, 8vh, 82px); padding: 18px 20px 20px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 17px; background: rgba(255, 255, 255, 0.045); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.16); backdrop-filter: blur(10px); }
.preview-head, .preview-value { display: flex; align-items: center; justify-content: space-between; }
.preview-head span { color: #dce7e0; font-size: 10px; font-weight: 700; }
.preview-head small { color: #758c7f; font-size: 8px; }
.preview-value { justify-content: flex-start; gap: 10px; margin-top: 15px; }
.preview-value strong { font-family: "Onest", sans-serif; font-size: 24px; letter-spacing: -0.04em; }
.preview-value span { padding: 5px 7px; border-radius: 6px; background: rgba(200, 244, 94, 0.1); color: var(--lime); font-size: 8px; font-weight: 700; }
.preview-chart { display: flex; height: 52px; align-items: flex-end; gap: 7px; margin-top: 18px; }
.preview-chart i { width: 10%; height: var(--h); min-height: 6px; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--lime), #6b9c54); opacity: 0.55; }
.preview-chart i:nth-last-child(-n+3) { opacity: 1; }

.story-foot { display: flex; align-items: center; gap: 22px; margin-top: auto; padding-top: 40px; color: #71887b; font-size: 8px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.story-foot span { display: flex; align-items: center; gap: 7px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #50c787; box-shadow: 0 0 0 4px rgba(80, 199, 135, 0.1); }

.login-panel { display: grid; padding: 44px; background: #f6f8f7; place-items: center; }
.mobile-brand { display: none; }
.login-card { width: min(440px, 100%); }
.login-card header { margin-bottom: 32px; }
.lock-mark { display: grid; width: 47px; height: 47px; margin-bottom: 24px; place-items: center; border: 1px solid #dce7e0; border-radius: 14px; background: white; color: var(--green); box-shadow: 0 12px 34px rgba(24, 55, 39, 0.07); }
.lock-mark svg { width: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.login-card header p { margin: 0 0 7px; color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.login-card h2 { margin: 0 0 10px; font-family: "Onest", sans-serif; font-size: clamp(28px, 3vw, 36px); letter-spacing: -0.045em; }
.login-card header > span:last-child { color: var(--muted); font-size: 12px; }

#login-form { display: grid; gap: 20px; }
#login-form label { display: grid; gap: 8px; }
#login-form label > span { font-size: 10px; font-weight: 700; }
.input-wrap { position: relative; }
.input-wrap > svg { position: absolute; z-index: 1; top: 50%; left: 16px; width: 17px; fill: none; stroke: #87958d; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; transform: translateY(-50%); pointer-events: none; }
.input-wrap input { width: 100%; height: 53px; padding: 0 48px; border: 1px solid var(--line); outline: none; border-radius: 12px; background: white; color: var(--ink); font-size: 11px; transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.input-wrap input::placeholder { color: #a6b1ab; }
.input-wrap input:focus { border-color: #72a78a; box-shadow: 0 0 0 4px rgba(45, 126, 89, 0.09), 0 14px 35px rgba(24, 55, 39, 0.05); }
.password-wrap input { padding-right: 53px; }
.password-wrap button { position: absolute; top: 50%; right: 9px; display: grid; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: #839189; cursor: pointer; place-items: center; transform: translateY(-50%); }
.password-wrap button:hover { background: var(--page); color: var(--green); }
.password-wrap button svg { width: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }

.login-message { display: none; margin-top: -4px; padding: 11px 13px; border-radius: 9px; background: #fff0ef; color: var(--red); font-size: 9px; line-height: 1.5; }
.login-message.show { display: block; }
.login-submit { display: flex; height: 53px; align-items: center; justify-content: center; gap: 10px; margin-top: 4px; border: 0; border-radius: 12px; background: var(--nav); color: white; cursor: pointer; font-size: 11px; font-weight: 700; box-shadow: 0 14px 32px rgba(19, 36, 28, 0.18); transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.login-submit:hover { background: var(--nav-soft); box-shadow: 0 17px 36px rgba(19, 36, 28, 0.22); transform: translateY(-1px); }
.login-submit:active { transform: translateY(0); }
.login-submit:disabled { cursor: wait; opacity: 0.72; transform: none; }
.login-submit svg { width: 17px; fill: none; stroke: var(--lime); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; transition: transform 160ms ease; }
.login-submit:hover svg { transform: translateX(3px); }
.login-submit.loading svg { animation: spin 800ms linear infinite; }

.login-card footer { display: flex; align-items: center; justify-content: space-between; margin-top: 31px; padding-top: 22px; border-top: 1px solid var(--line); color: #94a099; font-size: 8px; }
.login-card footer span { display: flex; align-items: center; gap: 6px; }
.login-card footer svg { width: 13px; fill: none; stroke: var(--green); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-story { display: none; }
  .login-panel { min-height: 100vh; padding: 28px; }
  .mobile-brand { position: absolute; top: 28px; left: 28px; display: flex; align-items: center; gap: 11px; }
  .mobile-brand .login-brand__mark { width: 35px; height: 35px; border-radius: 11px 5px 11px 5px; font-size: 17px; }
  .mobile-brand strong { font-family: "Onest", sans-serif; font-size: 17px; }
}

@media (max-width: 520px) {
  .login-panel { align-items: start; padding: 112px 21px 30px; }
  .mobile-brand { top: 24px; left: 22px; }
  .login-card header { margin-bottom: 27px; }
  .lock-mark { width: 43px; height: 43px; margin-bottom: 20px; }
  .login-card h2 { font-size: 29px; }
  .login-card footer { align-items: flex-start; flex-direction: column; gap: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation-duration: 1ms !important; }
}
