/* auth.css — shared styling for the account-entry pages (login, register,
 * forgot, reset). Pairs with site.css (which provides the design tokens +
 * header/footer). Stripe-inspired: bold left-aligned heading, tidy labelled
 * inputs with a focus ring, solid primary button, OR divider, OAuth buttons. */

body { display:flex; flex-direction:column; min-height:100vh; }

.auth-main { flex:1 0 auto; display:flex; align-items:flex-start; justify-content:center; padding:32px 20px;
  background:#fff; font-family:'Figtree','Inter',system-ui,-apple-system,'Segoe UI',sans-serif; }
.auth-card { background:var(--bg); border:1px solid var(--border); border-radius:0; width:100%;
  max-width:440px; padding:34px 40px 28px; }
.auth-card h1 { font-size:24px; font-weight:700; letter-spacing:-0.5px; margin:0 0 20px; color:#091e42; }
.auth-sub { color:var(--text-muted); font-size:15px; margin:0 0 22px; }

.field { margin:0 0 14px; }
.label-row { display:flex; align-items:baseline; justify-content:space-between; margin:0 0 7px; gap:12px; }
.auth-card label { display:block; font-size:13.5px; font-weight:600; color:var(--text); }
.label-row label { margin:0; }
.label-row a { font-size:13px; color:var(--text); font-weight:600; text-decoration:underline; text-underline-offset:2px; }
.label-row a:hover { color:#000; }
.label-aside { font-size:12.5px; font-weight:600; color:var(--text-muted); }
label .opt { font-weight:400; color:var(--text-muted); }

.input-wrap { position:relative; }
.auth-card input { width:100%; padding:12px 14px; border:1px solid #e3e5ea; border-radius:0;
  font-size:15px; font-family:inherit; color:var(--text); background:#fff;
  box-shadow:0 1px 2px rgba(10,30,60,.05); transition:border-color .15s, box-shadow .15s; }
.auth-card input::placeholder { color:#9aa3af; }
.auth-card input:hover { border-color:#d4d7dd; }
.auth-card input:focus { outline:none; border-color:#2563eb; box-shadow:0 0 0 3px rgba(37,99,235,.15); }
.auth-card input.has-toggle { padding-right:44px; }
.hint { font-size:12px; color:var(--text-muted); margin:7px 0 0; }

.toggle-pw { position:absolute; top:50%; right:6px; transform:translateY(-50%); background:none; border:0;
  width:34px; height:34px; display:flex; align-items:center; justify-content:center; cursor:pointer;
  color:var(--text-muted); border-radius:2px; }
.toggle-pw:hover { color:var(--text); background:var(--bg-accent); }

button.submit { width:100%; padding:14px; background:#2563eb; color:#fff; border:0; border-radius:2px;
  font-size:15px; font-weight:600; font-family:inherit; cursor:pointer; margin-top:4px; transition:background .15s; position:relative; }
button.submit:hover { background:#1d4ed8; }
button.submit:disabled { opacity:.6; cursor:default; }
/* Loading state: hide the label and show a small spinning circle (no markup needed). */
button.submit.is-loading { color:transparent; pointer-events:none; opacity:1; }
button.submit.is-loading::after { content:""; position:absolute; top:50%; left:50%; width:17px; height:17px;
  margin:-8.5px 0 0 -8.5px; border:2px solid rgba(255,255,255,.35); border-top-color:#fff; border-radius:50%;
  animation:btnspin .6s linear infinite; }
@keyframes btnspin { to { transform:rotate(360deg); } }

.divider { display:flex; align-items:center; gap:14px; margin:18px 0; color:var(--text-muted);
  font-size:12px; font-weight:600; letter-spacing:.5px; }
.divider::before, .divider::after { content:""; flex:1; height:1px; background:var(--border); }

.oauth-row { display:flex; flex-direction:column; gap:10px; }
.btn-oauth { width:100%; padding:12px; background:#fff; color:var(--text); border:1px solid var(--border-strong);
  border-radius:2px; font-size:14.5px; font-weight:600; font-family:inherit; cursor:pointer; display:flex;
  align-items:center; justify-content:center; gap:10px; text-decoration:none; transition:background .15s, border-color .15s; }
.btn-oauth:hover { background:var(--bg-subtle); color:var(--text); }
.btn-oauth svg { flex:0 0 auto; }

.auth-foot { text-align:center; font-size:14px; color:var(--text-muted); margin:18px 0 0; }
.auth-foot a { color:var(--text); font-weight:600; text-decoration:underline; text-underline-offset:2px; }
.auth-foot a:hover { color:#000; }
.terms { text-align:center; font-size:12px; color:var(--text-muted); margin:16px 0 0; line-height:1.5; }
.terms a { color:var(--text-soft); text-decoration:underline; }

.msg { font-size:14px; border-radius:0; padding:11px 13px; margin:0 0 18px; display:none; }
.msg.err { background:var(--red-light); color:#a3261a; display:block; }
.msg.ok { background:#e7f6ec; color:#1c7a3f; display:block; }
.note { font-size:13px; color:var(--text-muted); text-align:center; margin:10px 0 0; display:none; }
.note.show { display:block; }

@media (max-width:520px) {
  .auth-card { padding:32px 24px 28px; border-radius:0; }
  .auth-main { padding:32px 14px; }
}

/* Edge rails — fixed 1360px column frame, hidden below 1360 (matches the rest of the site). */
.page-rails { position:fixed; top:0; bottom:0; left:0; right:0; margin:0 auto; width:min(1360px,100%);
  border-left:1px solid var(--border,#e5e7eb); border-right:1px solid var(--border,#e5e7eb); pointer-events:none; z-index:101; }
@media (max-width:1360px){ .page-rails { display:none; } }
