:root {
  color-scheme: light;
  --ink: #14251e;
  --muted: #708077;
  --green: #2f9e6f;
  --green-dark: #217b55;
  --green-soft: #e9f5ef;
  --line: #dfe8e2;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: #f3f7f4; color: var(--ink); }
button, input { font: inherit; }
button { cursor: pointer; }

.login-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, .9fr) minmax(480px, 1.1fr); }
.login-intro { position: relative; display: flex; min-height: 100vh; flex-direction: column; overflow: hidden; padding: 54px clamp(36px, 6vw, 88px); background: #112b22; color: #fff; }
.login-intro::before { content: ""; position: absolute; width: 520px; height: 520px; right: -210px; top: -180px; border: 1px solid rgba(141,211,177,.18); border-radius: 50%; box-shadow: 0 0 0 82px rgba(141,211,177,.04), 0 0 0 165px rgba(141,211,177,.025); }
.login-intro::after { content: ""; position: absolute; width: 260px; height: 260px; left: -120px; bottom: -120px; border-radius: 50%; background: rgba(47,158,111,.12); filter: blur(2px); }
.login-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 13px; width: fit-content; color: inherit; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #47b682; color: #fff; font-family: Georgia, serif; font-size: 23px; }
.login-brand strong, .login-brand small { display: block; }
.login-brand strong { font-size: 18px; letter-spacing: -.02em; }
.login-brand small { margin-top: 2px; color: #9bc7b3; font-size: 10px; letter-spacing: .04em; }
.intro-copy { position: relative; z-index: 1; max-width: 560px; margin: auto 0; padding: 60px 0; }
.eyebrow { margin: 0 0 14px; color: #54bd8d; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.intro-copy h1 { max-width: 520px; margin: 0 0 24px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 5vw, 68px); font-weight: 400; line-height: 1.04; letter-spacing: -.045em; }
.intro-copy > p:last-child { max-width: 450px; margin: 0; color: #acc4b8; font-size: 15px; line-height: 1.7; }
.security-note { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.security-note .shield { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(105,202,155,.34); border-radius: 11px; background: rgba(47,158,111,.12); color: #71d2a3; font-weight: 800; }
.security-note strong, .security-note small { display: block; }
.security-note strong { font-size: 12px; }
.security-note small { margin-top: 3px; color: #83a796; font-size: 10px; }

.login-panel { display: grid; min-height: 100vh; place-items: center; padding: 40px; background: radial-gradient(circle at 85% 15%, rgba(47,158,111,.08), transparent 30%), #f7faf8; }
.login-card { width: min(430px, 100%); padding: 44px; border: 1px solid rgba(213,225,217,.9); border-radius: 24px; background: rgba(255,255,255,.94); box-shadow: 0 28px 80px rgba(24,56,43,.11); }
.login-card h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 38px; font-weight: 400; letter-spacing: -.03em; }
.login-hint { margin: 10px 0 30px; color: var(--muted); font-size: 13px; line-height: 1.55; }
form > label { display: block; margin: 18px 0 7px; color: #53645b; font-size: 11px; font-weight: 750; }
input { width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 11px; padding: 0 14px; background: #fbfdfb; color: var(--ink); outline: none; transition: border-color .18s, box-shadow .18s, background .18s; }
input:focus { border-color: #75b89a; background: #fff; box-shadow: 0 0 0 4px rgba(47,158,111,.11); }
.password-field { position: relative; }
.password-field input { padding-right: 88px; }
.password-field button { position: absolute; top: 50%; right: 9px; transform: translateY(-50%); border: 0; border-radius: 7px; padding: 7px 8px; background: transparent; color: var(--green-dark); font-size: 10px; font-weight: 750; }
.password-field button:hover { background: var(--green-soft); }
.form-error { margin: 15px 0 0; border-radius: 9px; padding: 10px 12px; background: #fff0ed; color: #a84738; font-size: 11px; line-height: 1.45; }
.submit-button { display: flex; justify-content: space-between; align-items: center; width: 100%; height: 49px; margin-top: 22px; border: 0; border-radius: 11px; padding: 0 17px; background: var(--green); color: #fff; font-size: 13px; font-weight: 800; box-shadow: 0 10px 24px rgba(47,158,111,.23); transition: transform .18s, background .18s, opacity .18s; }
.submit-button:hover { background: #298c63; transform: translateY(-1px); }
.submit-button:disabled { cursor: wait; opacity: .65; transform: none; }
.session-note { margin: 22px 0 0; color: #98a49d; font-size: 10px; text-align: center; }

@media (max-width: 820px) {
  .login-layout { grid-template-columns: 1fr; }
  .login-intro { min-height: auto; padding: 24px; }
  .intro-copy { margin: 56px 0 48px; padding: 0; }
  .intro-copy h1 { max-width: 580px; font-size: clamp(36px, 10vw, 54px); }
  .security-note { display: none; }
  .login-panel { min-height: auto; padding: 28px 18px 52px; }
}

@media (max-width: 460px) {
  .login-intro { padding: 20px; }
  .intro-copy { margin: 44px 0 28px; }
  .intro-copy h1 { font-size: 36px; }
  .intro-copy > p:last-child { font-size: 13px; }
  .login-card { padding: 30px 22px; border-radius: 19px; }
  .login-card h2 { font-size: 32px; }
}
