/* TurnBot — mock sign-up / log-in pages (web experiment).
   Temporary: these pages are a front-end mock, nothing is sent anywhere.
   Delete this file together with signup.html, login.html and auth.js to
   put the site back on WhatsApp. */

:root { --danger: #b3261e; --danger-soft: #fdecea; }
@media (prefers-color-scheme: dark) {
  :root { --danger: #ff9d94; --danger-soft: #3a1512; }
}

.auth {
  padding: 56px 0 88px; overflow: hidden;
  min-height: 66vh;   /* the footer stays at the bottom once the card shrinks */
  background:
    radial-gradient(42% 52% at 88% 12%, rgba(20, 184, 176, 0.13), transparent 70%),
    radial-gradient(40% 48% at 10% 96%, rgba(30, 107, 255, 0.10), transparent 70%),
    var(--paper);
}
.auth .wrap {
  max-width: 940px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 56px; align-items: start;
}
@media (max-width: 860px) {
  .auth { padding: 36px 0 64px; }
  .auth .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

/* ── the form card ──────────────────────────────────────── */

.auth-card {
  background: var(--card); border: 1px solid var(--rule);
  border-radius: 18px; padding: 32px; box-shadow: var(--shadow);
}
@media (max-width: 560px) { .auth-card { padding: 24px 20px; } }
.auth-card h1 { font-size: clamp(1.55rem, 3.2vw, 2rem); }
.auth-sub { margin-top: 10px; color: var(--muted); }
.auth-sub a { color: var(--accent); }


.form-alert {
  display: none; margin-top: 20px; padding: 11px 14px;
  border-radius: 11px; background: var(--danger-soft); color: var(--danger);
  font-size: 0.9rem; font-weight: 600; line-height: 1.45;
}
.form-alert:not(:empty) { display: block; }

.auth-form { margin-top: 8px; }
.field { margin-top: 18px; display: grid; gap: 7px; }
.field > label { font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.field input[type="text"], .field input[type="email"], .field input[type="password"] {
  width: 100%; padding: 12px 14px; border-radius: 11px;
  border: 1px solid var(--rule-strong); background: var(--paper); color: var(--ink);
  font: inherit; font-size: 0.98rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder { color: var(--muted); opacity: 0.8; }
.field input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px var(--danger-soft); }
.field-hint { font-size: 0.85rem; color: var(--muted); }
.field-error { font-size: 0.85rem; color: var(--danger); font-weight: 600; }
.field-error:empty { display: none; }

/* the password field's show / hide button sits inside the input */
.pw { position: relative; display: block; }
.pw input { padding-right: 76px; }
.pw-toggle {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  padding: 6px 10px; border: 0; border-radius: 8px;
  background: transparent; color: var(--accent);
  font: inherit; font-size: 0.86rem; font-weight: 700; cursor: pointer;
}
.pw-toggle:hover { background: var(--accent-soft); }

.auth-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px 20px; flex-wrap: wrap; margin-top: 18px;
}
.auth-row a { color: var(--accent); font-size: 0.92rem; text-decoration: none; }
.auth-row a:hover { text-decoration: underline; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--ink-2); }
.check input { width: 17px; height: 17px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.check a { color: var(--accent); }

.auth-submit { margin-top: 22px; width: 100%; justify-content: center; }

.auth-or {
  display: flex; align-items: center; gap: 14px;
  margin: 22px 0; color: var(--muted); font-size: 0.85rem;
}
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.btn-social { width: 100%; justify-content: center; }
.btn-social svg { width: 18px; height: 18px; }

.auth-alt { margin-top: 24px; text-align: center; font-size: 0.94rem; color: var(--muted); }
.auth-alt a { color: var(--accent); font-weight: 600; }

/* what the mock shows instead of submitting */
.auth-done { display: none; text-align: center; padding: 8px 0 4px; }
.auth-done.on { display: block; }
.auth-card.sent .auth-form, .auth-card.sent .auth-or, .auth-card.sent .btn-social,
.auth-card.sent .auth-sub, .auth-card.sent .auth-alt,
.auth-card.sent > .field-error, .auth-card.sent > h1 { display: none; }
.auth-done-icon {
  width: 56px; height: 56px; margin: 0 auto 18px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--teal-soft); color: var(--teal);
}
.auth-done-icon svg { width: 28px; height: 28px; }
.auth-done h2 { font-size: 1.35rem; }
.auth-done p { margin-top: 10px; color: var(--ink-2); }
.auth-done .mono { font-family: var(--mono); font-size: 0.92rem; color: var(--ink); }
.auth-done .btn { margin-top: 22px; }

/* ── the panel beside the form ──────────────────────────── */

.auth-aside { padding-top: 6px; }
.auth-aside h2 { font-size: 1.15rem; }
.auth-aside > ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 16px; }
.auth-aside > ul > li { display: flex; gap: 12px; align-items: flex-start; }
.auth-aside .tick {
  width: 24px; height: 24px; flex: none; margin-top: 1px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
}
.auth-aside .tick svg { width: 14px; height: 14px; }
.auth-aside h3 { font-size: 0.97rem; }
.auth-aside p { margin-top: 3px; font-size: 0.91rem; color: var(--muted); line-height: 1.5; }

/* ── the header's two actions (Log in + Sign up) ─────────── */
/* The header's own flex gap is 32px, too wide for a pair of buttons. */

.header-cta { display: flex; align-items: center; gap: 10px; }
.site-header .brand + .header-cta { margin-left: auto; }   /* pages without the nav */
@media (max-width: 860px) { .header-cta { margin-left: auto; } }
@media (max-width: 420px) {
  .header-cta { gap: 8px; }
  .header-cta .btn-ghost { display: none; }                /* phones: Sign up only */
}
