/* NewsRadar — Auth sayfaları (login, register, onboarding) */

[hidden] { display: none !important; }

.auth-body {
  min-height: 100vh;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at top left, rgba(198, 255, 58, 0.08), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(198, 255, 58, 0.05), transparent 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.auth-wrap {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.auth-brand {
  text-align: center;
}

.logo-lg {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.logo-lg .logo-img {
  height: 110px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}
/* Hâlâ kullanılırsa eski text-temelli logo için fallback */
.logo-accent { color: var(--accent); }

.auth-tagline {
  margin: 14px auto 0;
  max-width: 360px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}
.auth-tab {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.auth-tab:hover { color: var(--text); background: var(--bg); }
.auth-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: var(--accent-soft);
}

.auth-form {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-title {
  font: 600 22px/1.2 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 6px;
}

.auth-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auth-form .field > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.auth-form .field > span small {
  font-weight: 400;
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 4px;
}
.auth-form input {
  height: 42px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  outline: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-form input:hover { border-color: var(--border-strong); }
.auth-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.auth-form input::placeholder { color: var(--text-faint); }
/* 2FA / OTP kod girişi — okunaklı, hizalı haneler */
.auth-form input[name="code"] {
  font-variant-numeric: tabular-nums;
  text-align: center;
  letter-spacing: 0.18em;
  font-size: 18px;
}

.auth-submit {
  height: 44px;
  width: 100%;
  justify-content: center;
  font-size: 14px;
  margin-top: 4px;
}
.auth-submit:active,
.btn-google:active { transform: translateY(1px); }
.auth-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.auth-error {
  background: var(--danger-soft);
  color: var(--danger);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}

.auth-invite-banner {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.5;
}

.auth-foot-note {
  font-size: 12px;
  color: var(--text-faint);
  line-height: 1.6;
  margin: 0;
  text-align: center;
}

.auth-footer {
  text-align: center;
}
.auth-footer a {
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none;
}
.auth-footer a:hover { color: var(--accent); }

/* Toast (auth sayfalarında da) */
#toast.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--surface);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 200;
  animation: toast-in 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}
#toast.toast.toast-error { background: var(--danger); color: var(--bg); }
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ─── Şifremi unuttum + Google + 2FA ─── */
.auth-links {
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
}
.auth-links a {
  color: var(--text-muted);
  text-decoration: none;
}
.auth-links a:hover { color: var(--accent); text-decoration: underline; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 0;
  color: var(--text-faint);
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-google {
  width: 100%;
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.btn-google:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.btn-google svg { width: 18px; height: 18px; flex-shrink: 0; }

.auth-2fa-hint {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ─── Görünür klavye odağı (erişilebilirlik) ─── */
.auth-tab:focus-visible,
.btn-google:focus-visible,
.auth-submit:focus-visible,
.auth-links a:focus-visible,
.auth-footer a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
