:root {
  --brand-red: #E3000B;
  --brand-graphite: #2D2D2C;
  --bg: #F6F7F8;
  --surface: #FFFFFF;
  --border: #D0D5DD;
  --text: #1F2328;
  --text-muted: #667085;
  --danger: #C8191E;
  --success: #168A4A;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
}
.card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}
h1 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--brand-graphite);
}
p.sub { margin: 0 0 20px; color: var(--text-muted); }
.brand-bar { height: 4px; background: var(--brand-red); border-radius: 4px 4px 0 0; margin: -24px -24px 20px; }
.logo { height: 28px; width: auto; margin-bottom: 12px; }
label { display: block; font-weight: 600; margin: 12px 0 4px; }
input[type="email"], input[type="text"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
}
input:focus { outline: 2px solid var(--brand-red); outline-offset: 2px; border-color: var(--brand-red); }
button {
  width: 100%;
  margin-top: 16px;
  height: 36px;
  border: none;
  border-radius: 4px;
  background: var(--brand-red);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
button:disabled { opacity: 0.6; cursor: not-allowed; }
button.secondary { background: var(--surface); color: var(--brand-graphite); border: 1px solid var(--border); }
.tabs { display: flex; gap: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.tab {
  background: none; border: none; border-bottom: 2px solid transparent;
  width: auto; margin: 0; height: auto; padding: 0 2px 10px; border-radius: 0;
  font-size: 14px; font-weight: 600; color: var(--text-muted); cursor: pointer;
}
.tab[aria-selected="true"] { color: var(--brand-red); border-bottom-color: var(--brand-red); }
.msg { margin-top: 12px; font-size: 13px; }
.msg.error { color: var(--danger); }
.msg.success { color: var(--success); }
.panel[hidden] { display: none; }
