/* Sign-in and account pages. Shares the marketing page's tokens and buttons. */

.auth-page { min-height: 100dvh; display: grid; place-items: center; padding: 40px 20px; }
.auth-shell { width: 100%; max-width: 420px; text-align: center; }
.auth-shell-wide { max-width: 520px; }
.auth-brand { justify-content: center; margin-bottom: 26px; font-size: 18px; }
.auth-brand svg { width: 30px; height: 30px; }

.auth-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 32px 30px; text-align: left;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.auth-card-wide { padding: 34px 32px; }
.auth-card h1 { margin: 0 0 6px; font-size: 25px; font-weight: 660; letter-spacing: -0.5px; }
.auth-sub { margin: 0 0 22px; font-size: 14px; color: var(--muted); }

.auth-card label {
  display: block; margin: 0 0 6px; font-size: 12px; font-weight: 560;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em;
}
.auth-card input {
  width: 100%; margin-bottom: 18px; padding: 11px 13px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px;
  color: var(--text); font-size: 15px; font-family: inherit;
}
.auth-card input:focus { outline: none; border-color: var(--accent); }
.auth-hint { margin: -12px 0 18px; font-size: 12px; color: var(--dim); }

.auth-submit { width: 100%; text-align: center; margin-top: 4px; cursor: pointer; font-size: 15px; }
.auth-submit + .auth-submit { margin-top: 10px; }

.auth-error {
  margin-bottom: 18px; padding: 11px 13px; border-radius: 9px;
  background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.35);
  color: var(--down); font-size: 13.5px; line-height: 1.5;
}
.auth-switch { margin: 20px 0 0; font-size: 13.5px; color: var(--muted); text-align: center; }
.auth-switch a { color: var(--accent); text-decoration: none; margin-left: 5px; }
.auth-switch a:hover { text-decoration: underline; }
.auth-foot { margin-top: 22px; font-size: 13px; color: var(--dim); }
.auth-foot a { color: var(--muted); text-decoration: none; }
.auth-foot a:hover { color: var(--text); }

.auth-notice {
  margin-bottom: 16px; padding: 12px 15px; border-radius: 10px;
  font-size: 13.5px; line-height: 1.5; text-align: left;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--muted);
}
.auth-notice-ok { border-color: rgba(52, 211, 153, 0.4); color: var(--up); }
.auth-notice-warn { border-color: rgba(251, 191, 36, 0.4); color: var(--warn); }

.auth-status {
  padding: 14px 16px; border-radius: 10px; margin-bottom: 20px;
  font-size: 13.5px; line-height: 1.55; color: var(--muted);
  background: var(--panel-2); border: 1px solid var(--line);
}
.auth-status strong { display: block; font-size: 15px; margin-bottom: 3px; color: var(--text); }
.auth-status-ok { border-color: rgba(52, 211, 153, 0.35); }
.auth-status-ok strong { color: var(--up); }
.auth-status-warn { border-color: rgba(251, 191, 36, 0.4); }
.auth-status-warn strong { color: var(--warn); }

.auth-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 16px; }
.auth-plan {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  padding: 20px 16px; border-radius: 12px; cursor: pointer; text-align: left;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  font-family: inherit; transition: border-color 0.15s ease, transform 0.15s ease;
}
.auth-plan:hover { border-color: var(--accent); transform: translateY(-2px); }
.auth-plan:active { transform: translateY(0); }
.auth-plan:disabled { opacity: 0.6; cursor: default; transform: none; }
.auth-plan.is-loading { border-color: var(--up); }
.auth-plan-best { border-color: rgba(52, 211, 153, 0.45); }
.auth-plan-flag {
  position: absolute; top: -9px; left: 14px; padding: 2px 8px; border-radius: 999px;
  background: var(--up); color: #06231a; font-size: 10px; font-weight: 650;
}
.auth-plan-name { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.auth-plan-price { font-size: 26px; font-weight: 660; font-family: var(--mono); letter-spacing: -1px; }
.auth-plan-price small { font-size: 13px; font-weight: 400; color: var(--muted); font-family: inherit; letter-spacing: normal; }
.auth-plan-note { font-size: 11.5px; color: var(--dim); }

@media (max-width: 460px) { .auth-plans { grid-template-columns: 1fr; } }

/* ---------- google + pending ---------- */
.auth-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 11px 16px; margin-bottom: 4px;
  background: #fff; color: #1f2937; border-radius: 9px; text-decoration: none;
  font-size: 14.5px; font-weight: 560; border: 1px solid #d3dae4;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.auth-google:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.auth-google svg { width: 18px; height: 18px; flex: none; }
.auth-divider {
  display: flex; align-items: center; gap: 12px; margin: 18px 0;
  color: var(--dim); font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.auth-check {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  margin-bottom: 16px; font-size: 22px;
  background: rgba(52, 211, 153, 0.12); color: var(--up);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

/* 404 illustration */
.nf-chart { width: 100%; max-width: 220px; height: auto; display: block; margin: 0 auto 22px; }
