@import url("/shared/base.css");
@import url("/shared/components.css?v=stepsim-navy-logo");

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(241, 245, 249, 0.94)),
    var(--page);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.auth-shell-wide {
  place-items: start center;
}

.auth-panel {
  width: min(100%, 520px);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 55px rgba(42, 33, 70, 0.12);
}

.auth-brand {
  display: inline-flex;
  margin-bottom: 28px;
}

.auth-brand img {
  width: 112px;
  height: auto;
}

.auth-eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.auth-panel h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.auth-lead,
.auth-note,
.auth-alt,
.auth-status {
  color: var(--muted);
}

.auth-lead {
  margin: 16px 0 24px;
  max-width: 48ch;
  font-size: 1rem;
  line-height: 1.6;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  font-weight: 750;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input:not([type]) {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

.auth-check {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--page-soft);
  font-weight: 550;
  line-height: 1.45;
}

.auth-check input {
  margin-top: 2px;
}

.auth-form button,
.auth-secondary {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 850;
  color: #fff;
  background: var(--ink);
  cursor: pointer;
}

.auth-secondary {
  color: var(--ink);
  background: var(--page-soft);
  border: 1px solid var(--line);
}

.auth-form button:disabled,
.auth-secondary:disabled {
  opacity: 0.55;
  cursor: wait;
}

.auth-note {
  margin: 18px 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.auth-status {
  min-height: 1.5em;
  margin: 16px 0 0;
  font-weight: 700;
}

.auth-status.is-error {
  color: #9f1239;
}

.auth-status.is-ok {
  color: #166534;
}

.auth-alt {
  margin: 18px 0 0;
}

.auth-alt a {
  color: var(--ink);
  font-weight: 800;
}

.auth-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.auth-dashboard-grid article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--page-soft);
}

.auth-dashboard-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.auth-dashboard-grid strong {
  display: block;
  font-size: 1rem;
}

@media (max-width: 620px) {
  .auth-panel {
    padding: 24px;
  }

  .auth-dashboard-grid {
    grid-template-columns: 1fr;
  }
}
