/* GoClub sign-in — the one page that is deliberately narrow and phone-shaped,
   because most guests reach it from a WhatsApp message on their handset. */

.signin-page {
  min-height: 100dvh;
  /* A flat navy band behind the card, then the page ground. A diagonal split looked
     smarter but cut through the footer text at phone widths. */
  background:
    linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%) no-repeat top / 100% 320px,
    var(--bg);
  padding: 40px 16px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.signin-card {
  width: 100%;
  max-width: 460px;
}

.signin-foot {
  font-size: 12.5px;
  color: var(--ink-muted);
  text-align: center;
  margin: 0;
}

/* ---------- Banners ---------- */

.banner {
  margin: 16px 24px 0;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
}
.banner.bad { background: #FEF2F2; color: var(--error); }
.banner.info { background: var(--magenta-100); color: var(--magenta-700); }

/* ---------- The code to send ---------- */

.otp-display {
  display: block;
  text-align: center;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--magenta-100);
}
.otp-display .otp-label {
  display: block;
  font-size: 11.5px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--magenta-700); margin-bottom: 7px;
}
.otp-display .otp-code {
  display: block;
  font-size: clamp(26px, 8vw, 34px);
  font-weight: 900;
  letter-spacing: 0.2em;
  color: var(--navy-800);
  font-variant-numeric: tabular-nums;
}

/* ---------- Steps ---------- */

.steps { list-style: none; margin: 0 0 18px; padding: 0; }
.steps li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 11px;
  font-size: 14px;
  line-height: 1.5;
}
.steps li:last-child { margin-bottom: 0; }
.steps .n {
  position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--navy-800); color: #fff;
  font-size: 11.5px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- WhatsApp button ---------- */

.btn-whatsapp {
  display: flex; align-items: center; justify-content: center;
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  /* WhatsApp green with dark-green text: white on #25D366 is only 1.98:1, far short of
     the 4.5:1 minimum for a primary action. This keeps the recognisable brand colour
     and reaches 6.2:1. */
  background: #25D366; color: #0B3D1E;
  font-size: 15.5px; font-weight: 800;
  text-decoration: none;
}
.btn-whatsapp:hover { filter: brightness(0.96); }

/* ---------- Waiting status ---------- */

.signin-status {
  display: flex; align-items: center; gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: #F1F5F9;
  font-size: 13.5px;
  color: var(--ink-muted);
}
.signin-status.is-verified { background: #ECFDF5; color: var(--success); font-weight: 700; }
.signin-status.is-expired { background: #FEF2F2; color: var(--error); font-weight: 700; }

.signin-status .spinner {
  width: 15px; height: 15px; flex: 0 0 15px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--magenta-500);
  border-radius: 50%;
  animation: signin-spin 0.8s linear infinite;
}
.signin-status.is-verified .spinner,
.signin-status.is-expired .spinner { display: none; }

@keyframes signin-spin { to { transform: rotate(360deg); } }

/* ---------- Footer actions stack on narrow screens ---------- */

.signin-card .card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.signin-card .card-footer .btn-primary { flex: 1 1 200px; }

@media (max-width: 420px) {
  .signin-page { padding: 24px 12px 20px; }
  .signin-card .card-footer .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .signin-status .spinner { animation: none; }
}
