/* Geovatra · account pages (sign in, create an account, passwords, Google, delete).
   Built on the public site's look (site.css): Inter, near-black ink, pill buttons, white cards on a pale page. */
.auth {
  --ink: #111; --muted: #5b6470; --line: #e3e6ea; --page: #f6f7f9;
  --bad: #b42318; --bad-bg: #fef3f2; --ok: #067647; --ok-bg: #ecfdf3; --note: #92400e; --note-bg: #fef3c7;
  background: var(--page); min-height: calc(100vh - 80px); padding: 130px 16px 80px;
  display: flex; flex-direction: column; align-items: center;
}
.auth-card {
  width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 2.4rem 2.2rem 2.1rem; box-sizing: border-box;
}
.auth-card.is-wide { max-width: 520px; }
.auth h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 0.5rem; color: var(--ink); }
.auth .auth-lead { color: var(--muted); font-size: 0.97rem; line-height: 1.55; margin: 0 0 1.6rem; }
.auth .auth-lead strong { color: var(--ink); font-weight: 600; }
.auth p { line-height: 1.55; }

.auth-chip { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.75rem; border-radius: 40px;
  background: var(--note-bg); color: var(--note); margin-bottom: 1rem; }

.auth-msg { border-radius: 12px; padding: 0.75rem 0.95rem; font-size: 0.9rem; line-height: 1.45; margin: 0 0 1.1rem; }
.auth-msg-error { background: var(--bad-bg); color: var(--bad); }
.auth-msg-success { background: var(--ok-bg); color: var(--ok); }
.auth-msg-info, .auth-msg-warning { background: var(--note-bg); color: var(--note); }

.auth-form { display: grid; gap: 1.05rem; }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.auth-field { display: grid; gap: 0.4rem; }
.auth-field label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.auth-field .auth-label-row { display: flex; justify-content: space-between; align-items: baseline; }
.auth-field .auth-label-row a { font-size: 0.82rem; font-weight: 500; }
.auth-field input {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 0.97rem; color: var(--ink);
  padding: 0.72rem 0.9rem; border: 1px solid #d5d9df; border-radius: 12px; background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-field input:hover { border-color: #b9bfc7; }
.auth-field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.12); }
.auth-field input[aria-invalid="true"] { border-color: var(--bad); }
.auth-field .auth-help { font-size: 0.8rem; color: var(--muted); margin: 0; }
.auth-field .auth-error { font-size: 0.82rem; color: var(--bad); margin: 0; }

.auth-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; width: 100%; box-sizing: border-box;
  font: inherit; font-size: 0.95rem; font-weight: 600; padding: 0.82rem 1.4rem; border-radius: 40px;
  border: 1px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.auth-btn:hover { background: #2b2b2b; color: #fff; }
.auth-btn:focus-visible { outline: 3px solid rgba(17, 17, 17, 0.25); outline-offset: 2px; }
.auth-btn[disabled] { opacity: 0.6; cursor: wait; }
.auth-btn.is-outline { background: #fff; color: var(--ink); border-color: #d5d9df; }
.auth-btn.is-outline:hover { border-color: var(--ink); background: #fff; color: var(--ink); }
.auth-btn.is-danger { background: var(--bad); border-color: var(--bad); }
.auth-btn.is-danger:hover { background: #912018; }
.auth-btn img { width: 18px; height: 18px; }

.auth-or { display: flex; align-items: center; gap: 0.8rem; color: var(--muted); font-size: 0.82rem; margin: 1.3rem 0; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.auth a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: #b9bfc7; }
.auth a:hover { text-decoration-color: var(--ink); }
.auth a.auth-btn { text-decoration: none; color: #fff; }
.auth a.auth-btn.is-outline { color: var(--ink); }
.auth-after { max-width: 440px; width: 100%; text-align: center; color: var(--muted); font-size: 0.92rem; margin-top: 1.3rem; }
.auth-after p { margin: 0.35rem 0; }
.auth-small { font-size: 0.82rem; color: var(--muted); margin: 1.2rem 0 0; }

.auth-list { margin: 0 0 1.4rem; padding-left: 1.2rem; color: #444; line-height: 1.6; font-size: 0.94rem; }
.auth-list li { margin-bottom: 0.3rem; }

@media (max-width: 520px) {
  .auth { padding-top: 104px; }
  .auth-card { padding: 1.8rem 1.3rem 1.6rem; border-radius: 16px; }
  .auth-row { grid-template-columns: 1fr; }
  .auth h1 { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { .auth * { transition: none !important; } }

/* A tick box in an auth form (the join page, Stage 15) */
.auth-check { display: grid; grid-template-columns: 18px 1fr; gap: 0.55rem; font-size: 0.88rem; color: #3d4550; line-height: 1.45; align-items: start; }
.auth-check input { margin: 0.2rem 0 0; accent-color: var(--ink); }
