/* ─────────────────────────────
   Base
───────────────────────────── */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f7f7f9;
  color: #111827;
}

/* ─────────────────────────────
   Layout
───────────────────────────── */

.auth-container {
  min-height: 100dvh;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─────────────────────────────
   Card
───────────────────────────── */

.card {
  width: 100%;
  max-width: 420px;
  background: white;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* ─────────────────────────────
   Typography
───────────────────────────── */

.card h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.muted {
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.status {
  margin-top: 16px;
  font-size: 0.95rem;
  color: #065f46;
}

.status.error {
  color: #991b1b;
}

.brand-mark {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #111827;
  margin-bottom: 12px;
}

/* ─────────────────────────────
   Form controls
───────────────────────────── */

input,
button {
  width: 100%;
  font-size: 1rem;
}

input {
  height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: white;
  color: #111827;
  outline: none;
}

input::placeholder {
  color: #9ca3af;
}

input:focus {
  border-color: #24b47e;
  box-shadow: 0 0 0 3px rgba(36, 180, 126, 0.2);
}

input:disabled {
  background: #f3f4f6;
  color: #6b7280;
  cursor: not-allowed;
}

button {
  margin-top: 20px;
  height: 52px;
  border: none;
  border-radius: 999px;
  background: #24b47e;
  color: white;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}

button:hover {
  background: #1b8a61;
}

button:active {
  transform: scale(0.98);
}

button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.sent-state {
  margin-top: 18px;
  border: 1px solid #a7f3d0;
  background: #ecfdf5;
  border-radius: 14px;
  padding: 16px 14px;
  text-align: center;
}

.sent-tick {
  width: 56px;
  height: 56px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: #22c55e;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
}

.sent-title {
  font-weight: 700;
  color: #065f46;
  font-size: 1.02rem;
}

.sent-copy {
  margin-top: 4px;
  color: #166534;
  font-size: 0.92rem;
}

.hidden {
  display: none;
}

/* ─────────────────────────────
   Mobile: full-screen auth
───────────────────────────── */

@media (max-width: 640px) {
  body {
    background: white;
  }

  .auth-container {
    padding: 16px;
    align-items: stretch;
  }

  .brand-mark {
    font-size: 1rem;
    color: #374151;
  }

  .card {
    max-width: none;
    margin: auto 0;
    padding: 24px;
    border-radius: 0;
    box-shadow: none;
  }

  .card h1 {
    font-size: 1.6rem;
  }
}
