/* Login / signup pages — a card centered over a branded background. */
body.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  background:
    radial-gradient(ellipse 900px 600px at 15% 10%, rgba(59,130,246,0.35), transparent 60%),
    radial-gradient(ellipse 900px 700px at 85% 90%, rgba(37,99,235,0.3), transparent 60%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 45%, var(--navy-800) 100%);
  position: relative;
  overflow: hidden;
}
/* Subtle dot-grid texture for depth without needing an image asset */
body.auth-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}

.auth-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  width: 100%;
}
.auth-shell .brand-word { color: #fff; }
.auth-shell .brand { margin-bottom: 0.25rem; }

.auth-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 20px;
  padding: 2.25rem 2.25rem 2rem;
  box-shadow: 0 24px 60px -12px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06);
}
.auth-card h1 { font-size: 1.35rem; margin: 0 0 0.35rem; color: var(--slate-900); font-weight: 800; }
.auth-card .auth-subtitle { color: var(--slate-600); font-size: 0.92rem; margin: 0 0 1.6rem; }

.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--slate-600); margin-bottom: 0.4rem; }
.field label .hint { font-size: 0.8em; font-weight: 500; color: var(--slate-400); }
.field input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1.5px solid var(--slate-200);
  font-size: 0.98rem;
  background: var(--slate-50);
}
.field input:focus { border-color: var(--blue-500); background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }

.auth-card button[type="submit"] {
  width: 100%;
  padding: 0.75rem;
  border-radius: 10px;
  font-size: 0.98rem;
  margin-top: 0.4rem;
  background: linear-gradient(135deg, var(--blue-600), var(--navy-800));
  box-shadow: 0 6px 16px rgba(29,78,216,0.28);
}

.auth-divider { display: flex; align-items: center; gap: 0.75rem; margin: 1.3rem 0; color: var(--slate-400); font-size: 0.8rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--slate-200); }

.google-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  width: 100%; padding: 0.68rem; border-radius: 10px;
  border: 1.5px solid var(--slate-200); background: #fff; color: var(--slate-900);
  font-size: 0.95rem; font-weight: 600; text-decoration: none;
  box-sizing: border-box; transition: border-color 0.15s, box-shadow 0.15s;
}
.google-btn:hover { border-color: var(--slate-400); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }

.auth-footer-link { text-align: center; font-size: 0.9rem; color: var(--slate-600); margin: 1.4rem 0 0; }
.auth-footer-link a { color: var(--blue-600); font-weight: 600; text-decoration: none; }
.auth-footer-link a:hover { text-decoration: underline; }

.auth-back { color: rgba(255,255,255,0.7); font-size: 0.88rem; text-decoration: none; }
.auth-back:hover { color: #fff; }

/* Handy is green and white, no blue anywhere — this class is
   hardcoded directly in Handy's own standalone auth pages
   (handi-login.html/handi-signup.html/handi-verify.html, see the
   split plan) rather than toggled by JS off a ?product= query param
   the way it used to be on Billable's shared login.html/signup.html.
   Kept here since the background/button colors above are hardcoded
   blue and don't follow --accent. */
body.handy-mode {
  background:
    radial-gradient(ellipse 900px 600px at 15% 10%, rgba(5,150,105,0.35), transparent 60%),
    radial-gradient(ellipse 900px 700px at 85% 90%, rgba(4,120,87,0.3), transparent 60%),
    linear-gradient(160deg, #022c22 0%, var(--green-800) 45%, var(--green-700) 100%);
}
/* :not(.secondary), not [type="submit"] — verify.html's "Resend
   verification email" is type="button" (a JS-triggered action, not a
   form submit) and was still rendering blue because the old selector
   only matched submit buttons. Broadened to every filled button in
   the card; button.secondary below still wins for outlined ones. */
body.handy-mode .auth-card button:not(.secondary) {
  background: linear-gradient(135deg, var(--green-700), var(--green-800));
  box-shadow: 0 6px 16px rgba(6,95,70,0.28);
}
body.handy-mode .field input:focus { border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(16,185,129,0.15); }
body.handy-mode .auth-footer-link a { color: var(--green-700); }
body.handy-mode button.secondary { color: var(--green-700); border-color: var(--green-700); }

/* Sketch It is amber, no blue anywhere — same reasoning and shape as
   body.handy-mode above (own standalone product, split out of Handy
   2026-07-31), hardcoded directly on Sketch It's own auth pages. */
body.sketchit-mode {
  background:
    radial-gradient(ellipse 900px 600px at 15% 10%, rgba(194,65,12,0.35), transparent 60%),
    radial-gradient(ellipse 900px 700px at 85% 90%, rgba(154,52,18,0.3), transparent 60%),
    linear-gradient(160deg, #1a0f0a 0%, var(--amber-800) 45%, var(--amber-700) 100%);
}
body.sketchit-mode .auth-card button:not(.secondary) {
  background: linear-gradient(135deg, var(--amber-700), var(--amber-800));
  box-shadow: 0 6px 16px rgba(154,52,18,0.28);
}
body.sketchit-mode .field input:focus { border-color: var(--amber-500); box-shadow: 0 0 0 3px rgba(249,115,22,0.15); }
body.sketchit-mode .auth-footer-link a { color: var(--amber-700); }
body.sketchit-mode button.secondary { color: var(--amber-700); border-color: var(--amber-700); }
body.sketchit-mode .brand-mark { background: linear-gradient(135deg, var(--amber-700), var(--amber-800)); }
