/* Auth screens — Login / Register / Password / Onboarding */
.auth-wrap { min-height: calc(100vh - 80px); background: var(--bg-2); padding: 56px 0; }
.auth-card {
  width: 100%; max-width: 760px; margin: 0 auto; background: #fff;
  border-radius: var(--r-lg); padding: 48px 64px; box-shadow: var(--shadow-md);
}
.auth-card h1 { text-align: center; font-size: 34px; margin-bottom: 28px; }

.social-row { display: flex; gap: 24px; justify-content: center; margin-bottom: 28px; }
.social-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  flex: 1; max-width: 280px; padding: 14px 20px; border-radius: 12px;
  font-size: var(--fs-sm); font-weight: 500; color: #fff; cursor: pointer; border: 0;
}
.social-btn--google { background: #3A3A3A; }
.social-btn--apple  { background: #0B0B0B; }
.social-btn svg { width: 20px; height: 20px; }

.field { margin-bottom: 20px; }
.field > label { display: block; font-weight: 600; font-size: var(--fs-sm); margin-bottom: 8px; }
.field input {
  width: 100%; padding: 15px 18px; font: inherit; font-size: 16px;
  border: 1px solid var(--line); border-radius: 14px; outline: none; transition: border-color .15s;
}
.field input:focus { border-color: var(--brand); }
.field input::placeholder { color: var(--muted-2); }

.remember { display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 22px 0; color: var(--ink-2); font-size: var(--fs-sm); }
.remember input { width: 20px; height: 20px; accent-color: var(--brand); }

.auth-card .btn--primary { width: 100%; padding: 16px; font-size: 18px; margin-top: 6px; }

.auth-sub { display: flex; gap: 16px; justify-content: center; margin-top: 22px; }
.auth-sub a { background: #3A3A3A; color: #fff; padding: 11px 24px; border-radius: 10px;
  font-size: var(--fs-sm); }
.auth-sub a:hover { background: #2a2a2a; }

.flash { border-radius: 12px; padding: 12px 16px; margin-bottom: 20px; font-size: var(--fs-sm); }
.flash--error { background: #FDECEA; color: #C0392B; }
.flash--ok { background: #EAF7EF; color: #1E8449; }

/* Onboarding */
.onb-card { width: 100%; max-width: 560px; margin: 0 auto; background: #fff;
  border-radius: var(--r-lg); padding: 32px 40px 40px; box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; align-items: center; text-align: center; }
.onb-skip { align-self: flex-end; color: var(--muted); font-size: var(--fs-sm); }
.onb-illus { width: 220px; height: 220px; margin: 8px 0 24px; color: var(--brand); }
.onb-illus svg { width: 100%; height: 100%; }
.onb-card h2 { color: var(--brand); font-size: 30px; margin-bottom: 18px; }
.onb-divider { width: 180px; height: 1px; background: var(--line); margin-bottom: 18px; }
.onb-text { color: var(--muted); font-size: var(--fs-body); max-width: 380px; margin-bottom: 28px; }
.onb-card .btn--primary { min-width: 240px; }
.onb-dots { display: flex; gap: 8px; margin-top: 22px; }
.onb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.onb-dot--active { background: var(--brand); width: 22px; border-radius: 4px; }

@media (max-width: 720px) {
  .auth-card { padding: 32px 22px; }
  .social-row { flex-direction: column; }
  .social-btn { max-width: none; }
}

/* OAuth provider buttons */
.oauth-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 8px; }
.oauth-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff;
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink); cursor: pointer; transition: .15s; }
.oauth-btn:hover { border-color: var(--oc); box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.oauth-btn--off { opacity: .55; }
.oauth-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.oauth-sep { text-align: center; color: var(--muted); font-size: 14px; margin: 18px 0 22px; position: relative; }
.oauth-sep::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--line); }
.oauth-sep span { position: relative; background: #fff; padding: 0 14px; }
@media (max-width: 520px) { .oauth-row { grid-template-columns: 1fr; } }
