/**
 * NestSacco auth — smooth rounded UI
 */
:root {
  --auth-blue: #0058A3;
  --auth-blue-dark: #003D73;
  --auth-yellow: #FFDB00;
  --auth-text: #111111;
  --auth-muted: #5c5c5c;
  --auth-border: #c5c5c5;
  --auth-bg: #ffffff;
  --auth-link: #0058A3;
  --auth-radius: 12px;
  --auth-radius-pill: 999px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.auth-page {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color: var(--auth-text);
  background: var(--auth-bg);
  -webkit-font-smoothing: antialiased;
}
.auth-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
@media (max-width: 860px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-panel-left { min-height: 200px; padding: 1.5rem !important; }
  .auth-panel-left h1 { font-size: 1.65rem !important; }
}
.auth-panel-left {
  background: var(--auth-blue);
  color: #fff;
  padding: 2rem 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-brand { display: flex; align-items: center; gap: 0.75rem; }
.auth-brand .mark {
  width: 52px; height: 52px; background: #fff; color: var(--auth-blue);
  font-weight: 900; font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
}
.auth-brand span { font-weight: 800; font-size: 1.05rem; }
.auth-panel-left h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800; line-height: 1.15; margin: 2rem 0 1rem;
}
.auth-panel-left h1 em { font-style: normal; color: var(--auth-yellow); }
.auth-note {
  background: rgb(0 0 0 / 0.18);
  border-radius: var(--auth-radius); padding: 0.95rem 1.1rem;
  font-size: 0.875rem; line-height: 1.5; max-width: 28rem;
}
.auth-foot { font-size: 0.7rem; opacity: 0.85; margin-top: 2rem; }
.auth-panel-right {
  padding: 2.5rem 1.5rem;
  display: flex; align-items: center; justify-content: center;
  background: #f7f9fc;
}
.auth-form-wrap {
  width: 100%; max-width: 420px;
  background: #fff;
  border-radius: 20px;
  padding: 1.75rem 1.5rem 1.85rem;
  box-shadow: 0 12px 40px rgb(15 23 42 / 0.08);
  border: 1px solid #e8eef5;
}
.auth-form-wrap.wide { max-width: 560px; }
.auth-form-wrap h2 { margin: 0 0 1.25rem; font-size: 1.15rem; font-weight: 800; }
.auth-field { margin-bottom: 1rem; }
.auth-field label {
  display: block; font-size: 0.8rem; font-weight: 700; margin-bottom: 0.4rem; color: #333;
}
.auth-field input,
.auth-field select,
.auth-field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--auth-border);
  border-radius: var(--auth-radius);
  font-size: 0.95rem;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  color: var(--auth-text);
}
.auth-field input::placeholder,
.auth-field textarea::placeholder {
  color: #9aa3af;
  opacity: 1;
}
.auth-field input:focus,
.auth-field select:focus,
.auth-field textarea:focus {
  outline: none;
  border-color: var(--auth-blue);
  box-shadow: 0 0 0 3px rgb(0 88 163 / 0.18);
}
.auth-phone { display: flex; gap: 0.55rem; }
.auth-phone select {
  width: 6rem; flex-shrink: 0; border-radius: var(--auth-radius);
}
.auth-link {
  color: var(--auth-link); font-size: 0.875rem; font-weight: 700;
  text-decoration: none; background: none; border: none; cursor: pointer; padding: 0;
}
.auth-link:hover { text-decoration: underline; }
.auth-hint { font-size: 0.8rem; color: var(--auth-muted); line-height: 1.45; margin: 0.45rem 0 0.85rem; }
.auth-btn {
  display: block; width: 100%; padding: 0.95rem 1rem;
  border: none; border-radius: var(--auth-radius-pill); font-size: 1rem; font-weight: 800;
  cursor: pointer; text-align: center; text-decoration: none !important;
  transition: transform .12s, filter .12s;
}
.auth-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.auth-btn-primary { background: var(--auth-blue); color: #fff; margin-top: 0.35rem; }
.auth-btn-primary:hover { background: var(--auth-blue-dark); }
.auth-btn-outline {
  background: #fff; color: var(--auth-text);
  border: 1.5px solid #1a1a1a; margin-top: 0.65rem;
}
.auth-check {
  display: flex; align-items: flex-start; gap: 0.55rem;
  font-size: 0.875rem; margin: 1rem 0;
}
.auth-check input { width: 1.05rem; height: 1.05rem; margin-top: 0.15rem; accent-color: var(--auth-blue); }
.auth-divider {
  text-align: center; font-size: 0.875rem; color: var(--auth-muted);
  margin: 1.35rem 0 0.75rem;
}
.auth-alert {
  padding: 0.85rem 1rem; border-radius: var(--auth-radius); font-size: 0.875rem; margin-bottom: 1rem;
}
.auth-alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.auth-alert-ok { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.auth-alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.auth-back {
  color: #fff; text-decoration: none; font-size: 1.25rem; font-weight: 700;
  display: inline-block; margin-bottom: 1rem; opacity: 0.9;
}
.auth-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; }
.auth-tab {
  flex: 1; padding: 0.6rem; border: 2px solid #e5e5e5; background: #fff;
  border-radius: var(--auth-radius); font-weight: 800; font-size: 0.8rem; cursor: pointer;
}
.auth-tab.active {
  border-color: var(--auth-blue); color: var(--auth-blue); background: #e8f1fa;
}
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 3.25rem; }
.pw-toggle {
  position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%);
  background: #f1f5f9; border: none; cursor: pointer; font-size: 0.75rem; font-weight: 700;
  color: var(--auth-muted); border-radius: 8px; padding: 0.25rem 0.45rem;
}
.auth-steps { display: flex; gap: 0.35rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.auth-step-pill {
  padding: 0.4rem 0.75rem; border-radius: var(--auth-radius-pill); font-size: 0.75rem; font-weight: 800;
  background: #eef2f7; color: #64748b;
}
.auth-step-pill.on { background: var(--auth-blue); color: #fff; }
.auth-step-pill.done { background: #0f766e; color: #fff; }
.auth-grid2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1rem;
}
@media (max-width: 520px) { .auth-grid2 { grid-template-columns: 1fr; } }
.captcha-box {
  display: flex; gap: 0.65rem; align-items: center; flex-wrap: wrap;
}
.captcha-code {
  font-size: 1.2rem; letter-spacing: 0.14em; font-weight: 800;
  background: #f1f5f9; padding: 0.55rem 0.85rem; border-radius: 10px;
  text-decoration: line-through; color: #334155;
}
