:root {
  --ink: #172321;
  --muted: #687572;
  --line: #c8d2ce;
  --surface: #ffffff;
  --surface-soft: #f5f7f6;
  --green-950: #102e2c;
  --green-900: #173d3a;
  --green-800: #21514c;
  --green-100: #e5f0ed;
  --accent: #ee6b3b;
  --accent-dark: #c94e23;
  --danger: #9e3131;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--surface-soft);
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-width: 0; min-height: 100%; margin: 0; }
body { background: var(--surface-soft); }
button, input { font: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid rgb(33 81 76 / 24%); outline-offset: 2px; }

.auth-shell { min-height: 100svh; display: grid; grid-template-columns: minmax(380px, 1fr) minmax(430px, 580px); }
.auth-brand { position: relative; min-height: 100%; overflow: hidden; padding: clamp(36px, 6vw, 82px); color: #fff; background: var(--green-950); }
.blueprint-grid { position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgb(255 255 255 / 15%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 15%) 1px, transparent 1px), radial-gradient(circle at 68% 35%, rgb(238 107 59 / 35%), transparent 32%); background-size: 34px 34px, 34px 34px, 100% 100%; }
.blueprint-grid::after { content: ""; position: absolute; width: 330px; height: 210px; right: -80px; bottom: 11%; border: 1px solid rgb(255 255 255 / 30%); transform: rotate(-7deg); box-shadow: 0 0 0 18px rgb(255 255 255 / 3%); }
.brand-content { position: relative; z-index: 1; width: min(100%, 690px); min-height: calc(100svh - clamp(72px, 12vw, 164px)); display: flex; flex-direction: column; }
.brand-logo-panel { width: min(420px, 100%); min-height: 104px; display: grid; place-items: center; padding: 7px 18px; border-radius: 14px; background: rgb(255 255 255 / 97%); box-shadow: 0 16px 40px rgb(0 0 0 / 18%); }
.brand-logo-panel img { display: block; width: 100%; height: auto; }
.brand-copy { margin: auto 0; padding: 54px 0 42px; }
.eyebrow { margin: 0 0 13px; color: #ffad88; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.brand-copy h1 { max-width: 640px; margin: 0; font-size: clamp(34px, 4.2vw, 62px); line-height: 1.03; letter-spacing: -.04em; }
.brand-copy > p:last-child { max-width: 570px; margin: 22px 0 0; color: #c6d8d4; font-size: clamp(15px, 1.5vw, 19px); line-height: 1.6; }
.feature-strip { display: flex; flex-wrap: wrap; gap: 9px; }
.feature-strip span { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 11px; border: 1px solid rgb(255 255 255 / 15%); border-radius: 7px; background: rgb(255 255 255 / 6%); color: #d9e6e3; font-size: 11px; }
.feature-strip b { min-width: 22px; color: #ff9568; font-size: 10px; letter-spacing: .02em; text-align: center; }

.auth-panel { display: grid; place-items: center; padding: clamp(28px, 5vw, 70px); background: var(--surface-soft); }
.auth-card { width: min(100%, 410px); }
.auth-heading { margin-bottom: 30px; }
.secure-badge { display: inline-flex; align-items: center; gap: 7px; min-height: 27px; padding: 0 10px; border-radius: 999px; background: var(--green-100); color: var(--green-800); font-size: 10px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.secure-badge span { color: #2c9a70; font-size: 8px; }
.auth-heading h2, .password-card h1 { margin: 18px 0 8px; color: var(--ink); font-size: 28px; line-height: 1.18; letter-spacing: -.025em; }
.auth-heading p, .password-card > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.field-label { display: block; margin: 18px 0 7px; color: #3c4a47; font-size: 12px; font-weight: 750; }
.auth-card input, .password-card input { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 7px; padding: 0 13px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.auth-card input:hover, .password-card input:hover { border-color: #9fada8; }
.auth-card input:focus, .password-card input:focus { border-color: #6d9e96; box-shadow: 0 0 0 3px rgb(33 81 76 / 10%); outline: 0; }
input[aria-invalid="true"] { border-color: var(--danger); }
.password-field { position: relative; }
.password-field input { padding-right: 84px; }
.password-field button { position: absolute; right: 5px; top: 5px; min-height: 38px; padding: 0 10px; border: 0; border-radius: 5px; background: transparent; color: var(--green-800); font-size: 11px; font-weight: 750; cursor: pointer; }
.password-field button:hover { background: var(--green-100); }
.auth-submit { width: 100%; min-height: 49px; margin-top: 25px; border: 1px solid var(--green-800); border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: var(--green-800); color: #fff; font-weight: 750; cursor: pointer; transition: background .15s, transform .08s; }
.auth-submit:hover:not(:disabled) { background: var(--green-900); }
.auth-submit:active:not(:disabled) { transform: translateY(1px); }
.auth-submit:disabled { opacity: .65; cursor: wait; }
.button-spinner { width: 17px; height: 17px; border: 2px solid rgb(255 255 255 / 38%); border-top-color: #fff; border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.auth-alert { margin-bottom: 17px; border: 1px solid #e2b3b3; border-radius: 7px; padding: 11px 12px; background: #fff3f3; color: #7d2929; font-size: 12px; line-height: 1.45; }
.auth-footnote { margin: 21px 0 0; padding-top: 18px; border-top: 1px solid #dfe5e2; color: #71807c; font-size: 10px; line-height: 1.5; text-align: center; }
.field-hint { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }

.password-page { min-height: 100svh; display: grid; place-items: center; padding: 28px; background-color: var(--surface-soft); background-image: radial-gradient(circle at 1px 1px, rgb(23 61 58 / 8%) 1px, transparent 0); background-size: 22px 22px; }
.password-card { width: min(100%, 480px); padding: clamp(26px, 5vw, 42px); border: 1px solid #dbe2df; border-radius: 14px; background: #fff; box-shadow: 0 18px 56px rgb(13 30 27 / 13%); }
.compact-logo { display: block; width: 250px; max-width: 80%; margin: -13px 0 13px; }
.compact-logo img { display: block; width: 100%; height: auto; }
.password-card form { margin-top: 26px; }

@media (max-width: 820px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { min-height: 190px; padding: 22px 20px; }
  .brand-content { min-height: 0; }
  .brand-logo-panel { width: 270px; min-height: 70px; padding: 2px 12px; }
  .brand-copy { margin: 14px 0 0; padding: 0; }
  .brand-copy h1 { font-size: 23px; }
  .brand-copy > p:last-child, .eyebrow, .feature-strip { display: none; }
  .auth-panel { place-items: start center; padding: 34px 20px 44px; }
}

@media (max-width: 430px) {
  .auth-brand { min-height: 160px; }
  .brand-copy h1 { font-size: 20px; }
  .auth-heading h2, .password-card h1 { font-size: 24px; }
  .password-page { padding: 14px; }
  .password-card { padding: 24px 20px 28px; }
}

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