/* Cassandra — auth pages: login, sign-up, OTP verify (standalone, no app chrome). */

/* --- Auth pages (login / signup, standalone — no app chrome) -------- */

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 20px;
}
.auth-card {
  width: 360px;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px 26px;
}
.auth-card__brand {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}
.auth-card__brand::before { content: "▰ "; opacity: 0.6; }
.auth-card__hint {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 2px 0 18px;
}
.auth-card form { display: flex; flex-direction: column; gap: 12px; }
.auth-card label {
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  gap: 4px;
}
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="text"] {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 16px;
  padding: 12px 14px;
  outline: none;
  border-radius: 3px;
}
/* The 6-digit OTP input wants to be visually loud — it's the only
   thing the user is doing on that page. Bigger, more spacing, taller. */
.auth-card input[name="code"] {
  font-size: 24px;
  padding: 16px 14px;
  letter-spacing: 0.5em;
  text-align: center;
}
.auth-card input:focus { border-color: var(--accent); }
.auth-card button {
  margin-top: 8px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 9px 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
}
.auth-card button:hover { background: var(--accent); color: var(--bg); }
.auth-card__alt {
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.auth-error {
  border-left: 3px solid var(--negative);
  background: color-mix(in srgb, var(--negative) 6%, transparent);
  color: var(--negative);
  padding: 8px 10px;
  font-size: 12px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
}
.auth-info {
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  color: var(--accent);
  padding: 8px 10px;
  font-size: 12px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
}
.auth-info--invited {
  /* Slightly warmer / friendlier shading for the referral banner. */
  border-left-color: var(--positive);
  background: color-mix(in srgb, var(--positive) 7%, transparent);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
}
.auth-info--invited strong { color: var(--positive); font-weight: 600; }
.auth-card__lede {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.5;
}
.auth-card__lede strong { color: var(--text); font-weight: normal; }
.auth-card__resend {
  background: transparent !important;
  color: var(--muted) !important;
  border: 1px dashed var(--border) !important;
  font-size: 11px !important;
}
.auth-card__resend:hover {
  color: var(--accent) !important;
  border-color: var(--accent) !important;
}


/* --- Mobile (≤480px) -------------------------------------------------- */

@media (max-width: 480px) {
  /* The card is already width:360px;max-width:100% so it fills the
     screen — just tighten internal padding to free up vertical space
     for the keyboard on iOS Safari (which eats half the viewport). */
  .auth-card { padding: 20px 18px; }
  .auth-card__brand { font-size: 14px; }
  .auth-card__lede { font-size: 12px; }
  .auth-card input,
  .auth-card button[type="submit"] {
    font-size: 14px;     /* avoids iOS Safari zoom-on-focus */
    padding: 10px 12px;
  }
}
