:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17201d;
  background: #f4f6f5;
  letter-spacing: 0;
}

* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; }
button, input { font: inherit; letter-spacing: 0; }
[hidden] { display: none !important; }

.auth-shell {
  width: min(920px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  align-items: center;
  gap: 88px;
}

.home-link { display: block; width: max-content; margin-bottom: 22px; color: #65706b; font-size: 13px; font-weight: 700; text-decoration: none; }
.home-link:hover { color: #167c62; }
.brand { color: #167c62; font-size: 14px; font-weight: 800; text-decoration: none; }
.eyebrow { margin: 42px 0 14px; color: #65706b; font-size: 12px; font-weight: 750; }
h1 { max-width: 520px; margin: 0; font-size: 48px; line-height: 1.12; }
.lede { max-width: 470px; margin: 20px 0 0; color: #65706b; font-size: 17px; line-height: 1.7; }

.auth-panel { padding: 30px; border: 1px solid #dce3df; border-radius: 8px; background: #fff; box-shadow: 0 18px 50px rgba(26, 42, 35, .09); }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 26px; padding: 4px; border-radius: 6px; background: #edf1ef; }
.segmented button { height: 38px; border: 0; border-radius: 4px; background: transparent; color: #65706b; cursor: pointer; }
.segmented button.active { background: #fff; color: #17201d; font-weight: 700; box-shadow: 0 1px 4px rgba(20, 30, 25, .12); }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; color: #3d4743; font-size: 13px; font-weight: 650; }
.field input { width: 100%; height: 46px; padding: 0 12px; border: 1px solid #cbd4cf; border-radius: 5px; color: #17201d; }
.field input:focus { border-color: #227fba; outline: 3px solid rgba(34, 127, 186, .12); }
.primary, .secondary { width: 100%; min-height: 44px; border-radius: 5px; cursor: pointer; font-weight: 700; }
.primary { border: 1px solid #167c62; background: #167c62; color: #fff; }
.primary:hover { background: #0e634e; }
.primary:disabled { cursor: wait; opacity: .65; }
.secondary { margin-top: 10px; border: 1px solid #cbd4cf; background: #fff; color: #34403b; }
.error { min-height: 20px; margin: -3px 0 12px; color: #b64a3c; font-size: 13px; }
.signed-in { text-align: center; }
.signed-in span, .signed-in small { display: block; color: #65706b; }
.signed-in strong { display: block; margin: 9px 0 3px; font-size: 21px; }
.signed-in small { margin-bottom: 24px; }

@media (max-width: 760px) {
  .auth-shell { min-height: auto; padding: 48px 0; grid-template-columns: 1fr; gap: 38px; }
  h1 { font-size: 36px; }
  .eyebrow { margin-top: 28px; }
}
