:root {
  --brand800: #07155f;
  --brand-700: #0f63f4;
  --brand-800-btn: #0139d9;
  --navy: #07155f;
  --panel: #ffffff;
  --border: #d5d7da;
  --text: #181d27;
  --muted: #414651;
  --ok-bg: #ecfdf3;
  --ok-border: #abefc6;
  --bad: #b42318;
  --bad-bg: #fef3f2;
  --focus: #1849a9;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--brand800);
  color: var(--text);
  font:
    14px/1.55 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.auth-screen {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
}

.auth-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: min(400px, 100%);
}

.auth-logo {
  display: block;
  height: 32px;
  width: auto;
}

.auth-product {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
}

main {
  width: 100%;
  background: var(--panel);
  border-radius: 12px;
  padding: 32px 32px 28px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.32);
}

h1 {
  color: var(--text);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}

.lede {
  margin: 0 0 22px;
}

label {
  display: block;
  color: var(--navy);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 5px;
}

input[type='email'],
input[type='password'] {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 16px;
  color: var(--text);
}

label[for='password'],
label[for='password-email'] {
  margin-top: 14px;
}

.auth-or {
  margin: 22px 0 8px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

button.primary {
  width: 100%;
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  background: var(--brand-700);
  border: 1px solid var(--brand-700);
  color: #fff;
}

button.primary:hover {
  background: var(--brand-800-btn);
  border-color: var(--brand-800-btn);
}

.callout {
  display: none;
  margin-bottom: 18px;
  border-left: 3px solid var(--bad);
  background: var(--bad-bg);
  padding: 12px 14px;
  border-radius: 0 8px 8px 0;
  font-size: 13.5px;
}

.callout:target,
.callout.is-visible {
  display: block;
}

.auth-sent {
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--ok-bg);
  border: 1px solid var(--ok-border);
}

.auth-sent strong {
  display: block;
  color: var(--navy);
  margin-bottom: 4px;
}

.auth-sent p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
