:root {
  color-scheme: light;
  --ink: #152b42;
  --muted: #536579;
  --blue: #205d9b;
  --blue-hover: #174a7e;
  --line: #d2dce6;
  --focus: #236bc1;
}

* { box-sizing: border-box; }
body.auth-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: #f3f6fa;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-hover); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
[hidden] { display: none !important; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 5vw, 72px);
  background: #fff;
  border-bottom: 1px solid #e3e9ef;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: .035em;
}
.brand-text { font-weight: 700; font-size: 18px; line-height: 1.3; }
.brand-text span { display: block; margin-top: 3px; font-size: 12px; font-weight: 500; letter-spacing: .025em; color: var(--muted); }
.header-label { font-size: 13px; color: var(--muted); }
.auth-shell {
  width: min(100%, 1096px);
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: clamp(32px, 6vw, 88px);
  align-content: center;
  align-items: center;
  margin: 0 auto;
  padding: 64px 32px;
}
.sign-in-context, .auth-card { min-width: 0; }
.eyebrow { margin: 0 0 14px; font-size: 11px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; color: var(--blue); }
.sign-in-context h2 { margin: 0; max-width: 450px; font-size: clamp(28px, 3.3vw, 40px); font-weight: 700; letter-spacing: -.035em; line-height: 1.15; }
.context-description { margin: 22px 0 0; color: var(--muted); max-width: 440px; font-size: 17px; }
.session-note { display: flex; gap: 13px; margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line); }
.session-icon { flex: 0 0 24px; color: var(--blue); padding-top: 2px; }
.session-icon svg { display: block; width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.session-note p { margin: 0; font-size: 14px; color: var(--muted); }
.session-note .note-title { font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.session-note .note-detail { margin-top: 8px; font-size: 13px; }
.session-note strong { color: var(--ink); font-weight: 650; }
.auth-card {
  background: #fff;
  border: 1px solid #dfe6ee;
  border-radius: 16px;
  box-shadow: 0 12px 35px rgb(24 48 73 / 6%);
  padding: 36px;
  overflow-wrap: anywhere;
}
h1 { margin: 0; font-size: 28px; line-height: 1.2; letter-spacing: -.025em; }
.page-lead { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.auth-form { margin-top: 26px; }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 650; }
input[type="email"], input[type="password"], input[type="text"] {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid #aebdcd;
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  line-height: 1.4;
}
input:hover { border-color: #7d92a9; }
.password-control { position: relative; }
.password-control.has-toggle input { padding-right: 76px; }
.password-toggle {
  position: absolute;
  right: 3px;
  top: 3px;
  min-height: 42px;
  min-width: 62px;
  padding: 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.password-toggle:hover { background: #edf3fa; }
.field-help { margin: 7px 0 0; font-size: 13px; color: var(--muted); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  width: 100%;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #fff;
  background: var(--blue);
  font: inherit;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { color: #fff; background: var(--blue-hover); }
.button-secondary { border-color: var(--line); color: var(--blue); background: #fff; }
.button-secondary:hover { color: var(--blue-hover); background: #edf3fa; }
.form-links { margin: 22px 0 0; text-align: center; font-size: 14px; }
.form-links a { display: inline-block; padding: 7px 0; }
.notice { margin: 22px 0 0; padding: 13px 15px; border: 1px solid; border-radius: 8px; font-size: 14px; }
.notice-error { background: #fff3f2; border-color: #e7bcb8; color: #8d2623; }
.notice-success { background: #eff8f2; border-color: #b5d8c2; color: #24593c; }
.notice-info { background: #f0f5fb; border-color: #c6d7eb; color: #284e75; }
.developer-note { margin-top: 18px; font-size: 13px; }
.developer-note p { margin: 8px 0; }
.account-summary { padding: 18px; margin: 24px 0; border-radius: 9px; background: #f3f6fa; }
.account-summary p { margin: 0; }
.account-summary .account-name { font-weight: 700; }
.account-summary .account-email { color: var(--muted); font-size: 14px; margin-top: 4px; }
.card-actions { margin: 24px 0 0; }
.site-footer { padding: 0 20px 24px; text-align: center; color: var(--muted); font-size: 12px; }

@media (max-width: 760px) {
  .site-header { padding: 18px 20px; }
  .header-label { display: none; }
  .auth-shell { max-width: 510px; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 28px 20px 36px; align-content: start; }
  .auth-card { order: -1; padding: 28px 24px; border-radius: 12px; }
  .sign-in-context { padding: 0 5px; }
  .eyebrow { display: none; }
  .sign-in-context h2 { font-size: 20px; letter-spacing: -.02em; line-height: 1.35; }
  .context-description { margin-top: 10px; font-size: 14px; }
  .session-note { margin-top: 20px; padding-top: 20px; }
  h1 { font-size: 26px; }
}
@media (max-width: 359px) {
  .site-header { padding: 16px; }
  .auth-shell { padding: 20px 12px 30px; }
  .auth-card { padding: 24px 20px; }
}
@media (forced-colors: active) {
  .brand-mark, .button { border: 1px solid ButtonText; }
  .auth-card { border: 1px solid CanvasText; }
}
