*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:     #0a0a0f;
  --panel:  #12121a;
  --border: rgba(255,255,255,0.07);
  --gold:       #c9a84c;
  --gold-light: #e8c97a;
  --text:   #f0ede8;

  /*
   * ✅ KONTRAST DÜZELTMESİ
   * Eski: #7a7880 → #12121a arka plan üzerinde kontrast oranı ~3.5:1 (yetersiz)
   * Yeni: #a8a5b0 → kontrast oranı ~6.2:1 (WCAG AA geçer)
   */
  --muted: #a8a5b0;
}

/* global.css temel stilleri geçerli; sadece bu sayfaya özel override: */
body {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 16px;
}

/* ── Dekoratif Arka Plan ── */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(201,168,76,.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 90%, rgba(100,80,180,.07) 0%, transparent 55%),
    var(--bg);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
  animation: drift 12s ease-in-out infinite alternate;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(201,168,76,.07);
  top: -100px;
  right: -100px;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(120,80,200,.06);
  bottom: -80px;
  left: -80px;
  animation-delay: -6s;
}

@keyframes drift {
  from { transform: translate(0,0) scale(1) }
  to   { transform: translate(30px,20px) scale(1.05) }
}

/* ── <main> sıfırla ── */
main {
  display: flex;
  justify-content: center;
  width: 100%;
  position: relative;
  z-index: 10;
}

/* ── Kart ── */
.card {
  width: 420px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 52px 48px;
  box-shadow: 0 40px 120px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.03);
  animation: rise .8s cubic-bezier(.22,1,.36,1) both;
}

@keyframes rise {
  from { opacity:0; transform:translateY(32px) scale(.97) }
  to   { opacity:1; transform:translateY(0) scale(1) }
}

/* ── Logo ── */
.logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 36px;
}

.logo-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(201,168,76,.25);
}

.logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
}

.logo-tagline {
  margin-top: 6px;
  font-size: 13px;
  /* ✅ KONTRAST: --muted şimdi #a8a5b0 → yeterli kontrast */
  color: var(--muted);
}

/* ── Divider ── */
.divider {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 28px;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.divider span {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
}

#google-btn-container {
  display: flex;
  justify-content: center;
}

/* ── Footer ── */
.footer {
  margin-top: 28px;
  text-align: center;
  font-size: 12px;
  /* ✅ KONTRAST: --muted şimdi #a8a5b0 */
  color: var(--muted);
  line-height: 1.7;
}

.footer a {
  color: var(--gold);
  /*
   * ✅ ERİŞİLEBİLİRLİK: Linkleri sadece renkle değil, altı çizgi ile de ayırt et.
   * Rapordaki "Bağlantılar renge dayalı olarak ayırt edilebilir" uyarısını kapatır.
   */
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer a:hover {
  color: var(--gold-light);
}

/* ── Giriş yapıldı paneli ── */
.user-panel {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.user-panel[style*="flex"] {
  display: flex;
}

.user-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--gold);
}

.user-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

.user-email {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.25);
  padding: 4px 12px;
  border-radius: 999px;
}

.signout-btn {
  padding: 10px 28px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  /* ✅ KONTRAST: --muted şimdi #a8a5b0 */
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  transition: border-color 0.2s, color 0.2s;
}

.signout-btn:hover {
  border-color: var(--text);
  color: var(--text);
}

/* ── Mobil ── */
@media (max-width: 480px) {
  .card {
    width: 100%;
    padding: 32px 20px;
    border-radius: 18px;
  }
}
/* login.css sonuna ekle — Google butonu */

.google-btn {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #ffffff;
  color: #1f1f1f;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  width: 100%;
  max-width: 324px;
  justify-content: center;
  transition: box-shadow 0.2s, transform 0.15s;
}

.google-btn:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transform: translateY(-1px);
}

.google-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.google-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ══════════════════════════════════════════════
   TABS — Giriş Yap / Kayıt Ol
══════════════════════════════════════════════ */
.tabs {
  display: flex;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px;
  gap: 4px;
}

.tab {
  flex: 1;
  padding: 9px 0;
  background: transparent;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}

.tab:hover {
  color: var(--text);
}

.tab--active {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  font-weight: 600;
}

/* ══════════════════════════════════════════════
   FORM ALANLARI
══════════════════════════════════════════════ */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.field-label-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.forgot-link {
  font-size: 12px;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.forgot-link:hover { color: var(--gold-light); }

.field-input {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}

.field-input:focus {
  border-color: rgba(201,168,76,0.5);
  background: rgba(201,168,76,0.04);
}

.field-input::placeholder { color: rgba(255,255,255,0.2); }

/* ══════════════════════════════════════════════
   HATA MESAJI
══════════════════════════════════════════════ */
.form-error {
  font-size: 13px;
  color: #ff7070;
  background: rgba(255,80,80,0.08);
  border: 1px solid rgba(255,80,80,0.2);
  border-radius: 8px;
  padding: 9px 12px;
  line-height: 1.5;
}

/* ══════════════════════════════════════════════
   SUBMIT BUTONU
══════════════════════════════════════════════ */
.btn-submit {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #0a0a0f;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  transition: box-shadow 0.2s, transform 0.15s, opacity 0.2s;
  min-height: 48px;
  margin-top: 4px;
}

.btn-submit:hover {
  box-shadow: 0 6px 24px rgba(201,168,76,0.4);
  transform: translateY(-1px);
}

.btn-submit:active { transform: translateY(0); }

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

