/* Auth surface — the door. Chromeless, centered, quiet.
   Tokens come from app.css; nothing here invents a color. */

.auth-wrap {
  min-height: 100dvh;
  display: grid;
  justify-items: center;
  align-items: safe center;
  padding: 32px 20px;
}

.auth-box {
  width: 100%;
  max-width: 408px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Brand: the one place coral exists — the mark itself, as the asset rather
   than a clip-path guess at it. This is the door, so it is drawn larger here
   than in the rail: 34px, which is the point where the extrusion still reads
   without the mark outweighing the word next to it. */
.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 4px;
}
.auth-mark {
  height: 34px;
  width: auto;
  flex: none;
}
.auth-word {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -.01em;
}

.auth-tag {
  text-align: center;
  color: var(--muted);
  max-width: 36ch;
  margin: 0 auto;
}

.auth-card { box-shadow: var(--shadow-1); }
.auth-card-in { padding: 20px 22px 22px; }

/* The start stage: one primary action, its one-line note, and the quiet way
   in for someone returning. Nobody sees an email field to start. */
.auth-start {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 6px 0 2px;
}
.auth-start .auth-start-btn { margin-top: 4px; }
.auth-start-note {
  text-align: center;
  max-width: 32ch;
  margin: 0;
}
.auth-return-link { margin-top: 2px; }

/* Attach-or-discard: two answers, weighted identically — the same discipline
   as the interview's accept/decline row. Neither is the "safe" one. */
.auth-choice {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.auth-choice .btn { flex: 1; }

.auth-submit { width: 100%; margin-top: 18px; }
a.auth-submit:hover { text-decoration: none; }

/* Errors: calm, inline, verbatim. Same dialect as the toast's err state. */
.auth-err {
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px solid var(--accent-line);
  border-radius: var(--r-m);
  font-size: 14px;
}

/* Sent / waiting states: one magenta rung, climbing slowly. */
.auth-sent, .auth-wait {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 10px 0 4px;
}
.auth-sent .auth-submit, .auth-sent .auth-resend { margin-top: 8px; }
.auth-sent-rung {
  color: var(--accent-text);
  width: 18px;
  height: 18px;
  animation: auth-climb 2.2s ease-in-out infinite;
}
.auth-rung-static { animation: none; display: inline-block; margin-bottom: 6px; }
@keyframes auth-climb {
  0%, 100% { transform: translateY(3px); opacity: .55; }
  50% { transform: translateY(-3px); opacity: 1; }
}

.auth-email { font-family: var(--mono); font-size: .95em; color: var(--text); }

.auth-resend-note { min-height: 1.4em; }

/* A button that reads as a link — for quiet second actions. */
.auth-linklike {
  border: 0;
  background: none;
  padding: 2px;
  color: var(--accent-text);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
}
.auth-linklike:hover { text-decoration: underline; }

.auth-foot { text-align: center; margin: 0; }
.auth-foot + .auth-foot { margin-top: -8px; }

@media (max-width: 760px) {
  .auth-wrap { padding: 24px 16px 40px; }
  .auth-card-in { padding: 18px 16px 20px; }
}
