:root {
  --auth-navy: #0f2645;
  --auth-blue: #2d6df6;
  --auth-gold: #b89b5e;
  --auth-canvas: #f5f8fd;
  --auth-text: #0f1d31;
  --auth-muted: #627087;
  --auth-line: #dbe3ef;
  --auth-danger: #a12a20;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--auth-text);
  background: var(--auth-canvas);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(420px, 1fr);
  min-height: 100vh;
}

.auth-brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(32px, 6vw, 72px);
  color: #ffffff;
  background: var(--auth-navy);
}

.auth-kicker,
.auth-eyebrow {
  color: #d8c89f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth-brand-panel h1 {
  margin: 10px 0 6px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.auth-brand-panel p {
  max-width: 480px;
  color: rgba(255, 255, 255, 0.7);
}

.auth-scope {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 13px;
}

.auth-main {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px;
}

.auth-card {
  width: min(100%, 620px);
  padding: clamp(28px, 5vw, 52px);
  background: #ffffff;
  border: 1px solid var(--auth-line);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 38, 69, 0.1);
}

.auth-card h2 {
  margin: 8px 0 12px;
  color: var(--auth-navy);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.auth-card > p {
  margin: 0;
  color: var(--auth-muted);
}

.auth-actions {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.auth-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 12px 18px;
  color: #ffffff;
  background: var(--auth-blue);
  border: 1px solid var(--auth-blue);
  border-radius: 10px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

.auth-button.secondary {
  color: var(--auth-navy);
  background: #ffffff;
  border-color: var(--auth-line);
}

.auth-button:hover,
.auth-button:focus {
  outline: 3px solid rgba(45, 109, 246, 0.2);
  outline-offset: 2px;
}

.auth-notice {
  margin-top: 24px;
  padding: 14px 16px;
  color: #47566b;
  background: #f7f9fc;
  border-left: 4px solid var(--auth-gold);
  border-radius: 0 9px 9px 0;
  font-size: 13px;
}

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

.auth-error .auth-eyebrow {
  color: var(--auth-danger);
}

.auth-status {
  margin-top: 20px;
  color: var(--auth-muted);
  font-size: 13px;
}

.auth-diagnostic {
  display: grid;
  gap: 8px;
  margin: 24px 0 0;
}

.auth-diagnostic > div {
  display: grid;
  grid-template-columns: minmax(110px, 0.45fr) 1fr;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--auth-line);
}

.auth-diagnostic dt {
  color: var(--auth-muted);
  font-size: 13px;
  font-weight: 700;
}

.auth-diagnostic dd {
  margin: 0;
  color: var(--auth-navy);
  font-weight: 800;
}

.auth-guidance {
  margin: 18px 0 0;
  padding: 14px 16px;
  color: #533f11;
  background: #fff8e7;
  border: 1px solid #ead9a8;
  border-radius: 9px;
  font-size: 14px;
}

.auth-spinner {
  width: 28px;
  height: 28px;
  margin: 24px 0;
  border: 3px solid #dbe3ef;
  border-top-color: var(--auth-blue);
  border-radius: 50%;
  animation: auth-spin 800ms linear infinite;
}

@keyframes auth-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 760px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-brand-panel {
    min-height: 240px;
    padding: 30px 24px;
  }

  .auth-brand-panel h1 {
    font-size: 38px;
  }

  .auth-main {
    align-items: start;
    padding: 18px;
  }

  .auth-card {
    padding: 28px 22px;
  }

  .auth-diagnostic > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-spinner {
    animation: none;
  }
}
