/* CDS SSO — Midwinter Meeting entry screens
   Shared stylesheet for: 1-email.html, 2a-sign-in.html, 2b-describe-you.html
   Fonts: Public Sans (body), Source Serif 4 (headings) — Google Fonts link in each page.
   Layout: two columns at >= 960px, single column below (the mobile design). */

:root {
  /* Brand — CDS palette "Balanced Modernization" */
  --cds-primary: #005456;        /* CDS Primary Green: header, headings, links, selected states */
  --cds-primary-dark: #003A3C;   /* link hover */
  --cds-accent: #91E9F2;         /* Midwinter Blue: primary buttons, header rule */
  --cds-secondary: #44AA91;      /* CDS Secondary Green */
  --cds-community: #FFC229;      /* CDS Community yellow: notice border */

  /* Neutrals */
  --page-bg: #F1F8F8;
  --surface: #FFFFFF;
  --text: #16211D;
  --text-muted: #4A5752;
  --text-body: #3E4A45;
  --border: #DAD6CB;
  --border-input: #8C9893;
  --border-option: #CFCAC0;
  --step-idle: #B9C4BF;
  --tint-selected: #E3F6F8;
  --tint-done: #D3EEE7;
  --notice-bg: #FFF4D4;
  --notice-text: #4A3800;
  --notice-icon: #6B5000;

  --radius: 8px;
  --radius-card: 14px;
  --shadow-card: 0 1px 2px rgba(0,84,86,.06), 0 12px 32px rgba(0,84,86,.08);
  --font-body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Source Serif 4', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--font-body); color: var(--text); background: var(--page-bg);
  font-size: 16px; line-height: 1.5;
}
a { color: var(--cds-primary); font-weight: 600; }
a:hover { color: var(--cds-primary-dark); }
:focus-visible { outline: 3px solid var(--cds-primary); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header {
  background: var(--cds-primary); border-bottom: 4px solid var(--cds-accent);
  min-height: 92px; padding: 0 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.site-header img { height: 48px; width: auto; display: block; }
.site-header .help { color: #fff; font-size: 15px; font-weight: 500; text-decoration: none; padding: 12px 0; }
.site-header .help:hover { color: var(--cds-accent); }

/* Page layout */
.page {
  flex: 1; width: 100%; max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 112px;
  padding: 80px 120px 64px; align-items: start;
}
.intro { display: flex; flex-direction: column; gap: 28px; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cds-primary); }
.intro h1 { margin: 0; font-family: var(--font-head); font-size: 56px; line-height: 1.05; font-weight: 700; color: var(--cds-primary); }
.intro .lede { margin: 0; font-size: 19px; line-height: 1.55; color: var(--text-body); max-width: 520px; }

/* Step tracker */
.steps { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.steps .dot {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px;
  background: var(--surface); border: 2px solid var(--step-idle); color: var(--text-muted);
}
.steps .text { display: flex; flex-direction: column; gap: 4px; padding-top: 6px; }
.steps strong { font-size: 17px; }
.steps .text span { font-size: 15px; color: var(--text-muted); }
.steps li[aria-current="step"] .dot { background: var(--cds-primary); border-color: var(--cds-primary); color: #fff; }
.steps li.done .dot { background: var(--tint-done); border-color: var(--tint-done); color: var(--cds-primary); }
.steps li.done strong { color: var(--text-muted); }

/* Info panel (2b) */
.info-panel { margin-top: 12px; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; max-width: 520px; }
.info-panel strong { display: block; color: var(--cds-primary); margin-bottom: 10px; }
.info-panel p { margin: 0; font-size: 15px; color: var(--text-body); line-height: 1.55; }

/* Card */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 44px; display: flex; flex-direction: column; gap: 24px; box-shadow: var(--shadow-card);
}
.card h2, .card legend.q { margin: 0; font-family: var(--font-head); font-size: 30px; font-weight: 600; line-height: 1.2; }
.card .sub { margin: 8px 0 0; color: var(--text-muted); }
.step-label { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }

/* Fields */
.field { display: flex; flex-direction: column; gap: 8px; }
.field-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
label { font-size: 15px; font-weight: 600; }
input[type="email"], input[type="password"], input[type="text"] {
  width: 100%; height: 56px; padding: 0 16px; font: inherit; font-size: 17px; color: var(--text);
  border: 1.5px solid var(--border-input); border-radius: var(--radius); background: var(--surface);
}
input::placeholder { color: #6B7571; }
input[aria-invalid="true"] { border-color: #B24063; }
.hint { font-size: 14px; color: var(--text-muted); }
.hint strong { color: var(--text); }
.error { font-size: 14px; color: #8E2A49; font-weight: 600; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 84px; }
.password-wrap .toggle {
  position: absolute; right: 6px; top: 6px; height: 44px; padding: 0 14px; border: 0; background: transparent;
  color: var(--cds-primary); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}

/* Email chip (2a) */
.email-chip { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: var(--tint-selected); border-radius: var(--radius); }
.email-chip span { display: flex; align-items: center; gap: 10px; overflow-wrap: anywhere; }
.email-chip a { font-size: 15px; padding: 8px 0; }

/* Buttons */
.btn-primary {
  height: 56px; padding: 0 40px; border: 0; border-radius: var(--radius); background: var(--cds-accent); color: var(--text);
  font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-primary:hover { background: #7FDDE8; }
.btn-block { width: 100%; }
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.actions a { padding: 16px 12px; font-size: 16px; }

/* Divider + security note (1) */
.divider { height: 1px; background: #E7E3DA; border: 0; margin: 0; }
.secure { display: flex; gap: 12px; align-items: flex-start; }
.secure p { margin: 0; font-size: 14px; color: var(--text-muted); }
.secure svg { flex-shrink: 0; margin-top: 1px; }

/* Notice (2a) */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: var(--notice-bg); border: 1px solid var(--cds-community); border-radius: var(--radius); }
.notice p { margin: 0; font-size: 14px; color: var(--notice-text); }
.notice svg { flex-shrink: 0; margin-top: 1px; }

/* Role options (2b) */
fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 14px; }
fieldset legend.q { margin-bottom: 14px; padding: 0; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.option {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 16px;
  border: 1.5px solid var(--border-option); border-radius: var(--radius); font-size: 16px; font-weight: 400; cursor: pointer; background: var(--surface);
}
.option input { width: 20px; height: 20px; margin: 0; accent-color: var(--cds-primary); flex-shrink: 0; }
.option:has(input:checked) { border: 2px solid var(--cds-primary); background: var(--tint-selected); }
.option:hover { border-color: var(--cds-primary); }

/* Footer */
.site-footer { max-width: 1440px; width: 100%; margin: 0 auto; padding: 0 120px 32px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { color: var(--text-muted); font-weight: 400; }

/* Tablet */
@media (max-width: 1200px) {
  .page { gap: 64px; padding: 64px 48px; }
  .site-footer { padding: 0 48px 32px; }
}

/* Mobile — matches the 390px mobile artboard */
@media (max-width: 959px) {
  .site-header { min-height: 68px; padding: 0 20px; }
  .site-header img { height: 32px; }
  .site-header .help { display: none; }          /* help link moves below the card */
  .page { grid-template-columns: 1fr; gap: 24px; padding: 32px 20px 24px; }
  .intro { gap: 20px; display: contents; }        /* lets the card sit between lede and steps */
  .eyebrow { font-size: 13px; order: 1; }
  .intro h1 { font-size: 38px; line-height: 1.08; order: 2; }
  .intro .lede { font-size: 17px; order: 3; }
  .card { order: 4; padding: 24px 20px; gap: 16px; border-radius: 12px; box-shadow: none; }
  .card h2, .card legend.q { font-size: 24px; }
  .steps { order: 5; gap: 14px; margin-top: 4px; }
  .steps .dot { width: 28px; height: 28px; font-size: 14px; }
  .steps .text { padding-top: 2px; }
  .steps strong { font-size: 15px; font-weight: 400; }
  .steps .text span { display: none; }
  .info-panel { order: 6; margin-top: 0; }
  .mobile-help { order: 7; display: block !important; border-top: 1px solid #E2DED4; padding-top: 16px; margin: 0; font-size: 14px; color: var(--text-muted); }
  input[type="email"], input[type="password"], input[type="text"], .btn-primary { height: 54px; }
  .options { grid-template-columns: 1fr; }
  .site-footer { padding: 0 20px 24px; }
}
.mobile-help { display: none; }

/* Screens after the three entry mocks — same tokens, so type, student, ADA, password and done match. */
.option { height: auto; min-height: 56px; padding: 12px 16px; }
.btn-primary { height: auto; min-height: 56px; padding: 16px 28px; text-align: center; white-space: normal; }
.btn-text {
  min-height: 56px; padding: 16px 12px; border: 0; background: transparent; cursor: pointer;
  color: var(--cds-primary); font: inherit; font-size: 16px; font-weight: 600;
}
.btn-text:hover { color: var(--cds-primary-dark); }
label .req { color: #B24063; margin-left: 2px; }
.validation-summary-errors { font-size: 14px; color: #8E2A49; font-weight: 600; }
.field-error:empty,
.validation-summary-valid { display: none; }
.validation-summary-errors ul { margin: 0; padding-left: 18px; }
input.input-validation-error,
select.input-validation-error,
textarea.input-validation-error { border-color: #B24063; background: #FDF4F3; }
input[type="file"] {
  width: 100%; font: inherit; font-size: 15px; padding: 12px 0; color: var(--text);
}
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; font-weight: 400; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--cds-primary); flex-shrink: 0; }
.callout { padding: 16px; background: var(--tint-selected); border-radius: var(--radius); font-size: 15px; color: var(--text-body); }
.callout strong { color: var(--cds-primary); }
.kv { margin: 0; display: grid; gap: 0; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #E7E3DA; }
.kv dt { color: var(--text-muted); font-size: 14px; }
.kv dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.rtbox { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rtbox div { background: var(--tint-selected); border-radius: var(--radius); padding: 16px; }
.rtbox span { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.rtbox strong { font-family: var(--font-head); font-size: 28px; line-height: 1.1; color: var(--cds-primary); }
a.btn-primary,
a.btn-primary:hover { color: var(--text); text-decoration: none; }
.card-form { display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 959px) {
  .btn-primary, .btn-text { min-height: 54px; }
  .rtbox { grid-template-columns: 1fr; }
  .kv div { flex-direction: column; gap: 2px; }
  .kv dd { text-align: left; }
}
