/* ============================================================
   FinToolbox — Auth pages (login / signup / callback)
   Standalone centered card. Builds on /css/styles.css tokens + .btn/.input.
   ============================================================ */
.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
  background:
    radial-gradient(1100px 600px at 50% -10%, color-mix(in srgb, var(--green) 9%, transparent), transparent 60%),
    var(--bg);
}
.auth-wrap { width: 100%; max-width: 400px; display: flex; flex-direction: column; align-items: center; gap: 20px; }

.auth-brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 17px; font-weight: 800; letter-spacing: -0.01em;
  color: var(--text); text-decoration: none;
}
.auth-brand .mark { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, var(--green), #11a37a); }

.auth-card {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 26px 24px;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.55);
}
.auth-card h1 { margin: 0 0 4px; font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.auth-card .auth-sub { margin: 0 0 20px; color: var(--text-3); font-size: 13px; }

.auth-google {
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 42px; border-radius: 9px;
  background: #fff; color: #1f1f1f;
  border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: filter 0.12s;
}
.auth-google:hover { filter: brightness(0.96); }

.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--text-4); font-size: 11.5px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }

.auth-form { display: flex; flex-direction: column; gap: 13px; }
.auth-form .fld { display: flex; flex-direction: column; gap: 6px; }
.auth-form label { font-size: 12px; font-weight: 600; color: var(--text-2); }
.auth-hint { font-size: 11.5px; min-height: 15px; }
.auth-hint.ok { color: var(--green); }
.auth-hint.bad { color: var(--red); }
.auth-hint.muted { color: var(--text-4); }

.auth-row-between { display: flex; justify-content: space-between; align-items: center; }
.auth-link { color: var(--green); text-decoration: none; font-size: 12.5px; font-weight: 600; }
.auth-link:hover { text-decoration: underline; }

.auth-msg {
  margin-top: 12px; padding: 10px 12px; border-radius: 8px;
  font-size: 12.5px; line-height: 1.45; display: none;
}
.auth-msg.show { display: block; }
.auth-msg.err { background: var(--red-soft); color: var(--red); }
.auth-msg.ok  { background: var(--green-soft); color: var(--green); }

.auth-alt { margin-top: 18px; text-align: center; font-size: 12.5px; color: var(--text-3); }
.auth-foot { font-size: 11px; color: var(--text-4); text-align: center; max-width: 340px; line-height: 1.5; }
