:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #657087;
  --line: #dce2ec;
  --surface: #ffffff;
  --background: #f3f6fa;
  --primary: #174ea6;
  --primary-dark: #103d82;
  --success: #16845b;
  --danger: #ba3a3a;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--ink); }
.site-header { min-height: 112px; padding: 25px max(24px, calc((100vw - 1080px) / 2)); background: #102a52; color: white; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header h1 { margin: 4px 0 0; font-size: clamp(1.35rem, 3vw, 2rem); letter-spacing: -.02em; }
.eyebrow, .step { font-size: .76rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow { color: #a9c8f5; }
.account { border: 1px solid #42648e; border-radius: 999px; padding: 8px 13px; font-size: .86rem; }
main { width: min(1080px, calc(100% - 32px)); margin: 32px auto 64px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 5px 22px rgba(31, 49, 82, .06); }
.login-card { max-width: 620px; margin: 72px auto; padding: 42px; }
.login-card h2, .result-card h2 { margin: 10px 0 12px; font-size: 2rem; }
.login-card p, .result-card p, .intro p { color: var(--muted); line-height: 1.6; }
.step { color: var(--primary); }
.intro { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 22px; }
.intro h2 { margin: 6px 0 4px; font-size: 1.8rem; }
.intro p { margin: 0; }
.form-section { padding: 26px; margin-bottom: 18px; }
.form-section h3 { margin: 0 0 20px; font-size: 1.1rem; }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label { display: block; margin: 16px 0 0; color: #344158; font-size: .9rem; font-weight: 650; }
.grid label { margin-top: 0; }
input, select, textarea { width: 100%; margin-top: 7px; padding: 11px 12px; border: 1px solid #cbd4e1; border-radius: 8px; background: white; color: var(--ink); font: inherit; font-weight: 450; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 3px solid #cfe0fb; border-color: var(--primary); }
small { display: block; color: var(--muted); margin-top: 6px; font-weight: 450; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 0; border-radius: 8px; cursor: pointer; font: inherit; font-weight: 720; text-decoration: none; }
.button.primary { background: var(--primary); color: white; }
.button.primary:hover { background: var(--primary-dark); }
.button.secondary { background: #e7edf6; color: #244164; }
.actions { display: flex; justify-content: flex-end; margin-top: 22px; }
.logout-form { text-align: center; margin: 28px 0; }
.link-button { border: 0; background: transparent; color: var(--primary); cursor: pointer; text-decoration: underline; }
.result-card { max-width: 760px; margin: 64px auto; padding: 40px; text-align: center; }
.result-icon { width: 58px; height: 58px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%; font-size: 1.8rem; font-weight: 800; color: white; background: var(--success); }
.error .result-icon { background: var(--danger); }
dl { margin: 30px 0; border-top: 1px solid var(--line); text-align: left; }
dl div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.path { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; }
.result-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

@media (max-width: 700px) {
  .site-header, .intro { align-items: flex-start; flex-direction: column; }
  .grid.two { grid-template-columns: 1fr; }
  .intro .button { width: 100%; }
  .login-card, .form-section, .result-card { padding: 22px; }
  dl div { grid-template-columns: 1fr; gap: 4px; }
}

