/* ==========================================================================
   TEKİRDAĞ ÇEKDER - GÜVENLİ GİRİŞ EKRANI (FIREBASE AUTH)
   ========================================================================== */

:root {
  --bg-dark: #042013;
  --bg-deep: #02120b;
  --bg-card: rgba(6, 36, 21, 0.75);
  --bg-card-hover: rgba(10, 48, 28, 0.85);
  --border-glass: rgba(194, 136, 41, 0.22);
  --border-focus: #c28829;
  
  --primary: #15803d;
  --primary-glow: rgba(21, 128, 61, 0.4);
  --gold: #c28829;
  --gold-glow: rgba(194, 136, 41, 0.35);
  --gold-light: #e5a93c;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --danger: #ef4444;
  --success: #22c55e;
}

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

body.login-page {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
  padding: 24px;
}

/* Ambient Arka Plan Efektleri */
.login-bg-effects {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.login-bg-effects .ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  animation: orbFloat 14s ease-in-out infinite alternate;
}

.login-bg-effects .orb-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #0e5e31 0%, transparent 70%);
  top: -150px;
  left: -100px;
}

.login-bg-effects .orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #936015 0%, transparent 70%);
  bottom: -150px;
  right: -100px;
  animation-duration: 18s;
  animation-direction: alternate-reverse;
}

.login-bg-effects .orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #073820 0%, transparent 70%);
  top: 40%;
  left: 60%;
  opacity: 0.3;
}

.login-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.8) 0%, transparent 80%);
}

@keyframes orbFloat {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(30px) scale(1.08); }
  100% { transform: translateY(-20px) scale(0.96); }
}

/* Giriş Kartı */
.login-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 460px;
}

.login-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 40px 36px;
  box-shadow: 
    0 25px 60px -15px rgba(0, 0, 0, 0.65),
    0 0 40px rgba(194, 136, 41, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
  box-shadow: 
    0 30px 70px -15px rgba(0, 0, 0, 0.75),
    0 0 50px rgba(194, 136, 41, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Başlık ve Logo */
.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo-container {
  width: 84px;
  height: 84px;
  margin: 0 auto 16px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194, 136, 41, 0.2) 0%, rgba(4, 32, 19, 0.9) 80%);
  border: 2px solid rgba(194, 136, 41, 0.4);
  box-shadow: 0 8px 24px var(--gold-glow);
}

.login-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.login-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 9999px;
  background: rgba(194, 136, 41, 0.12);
  border: 1px solid rgba(194, 136, 41, 0.3);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.login-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--gold-light);
  box-shadow: 0 0 8px var(--gold-light);
}

.login-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.login-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Bildirim Kutusu */
.login-alert {
  display: none;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.84rem;
  line-height: 1.4;
  margin-bottom: 20px;
  align-items: center;
  gap: 10px;
  animation: fadeIn 0.3s ease;
}

.login-alert.show {
  display: flex;
}

.login-alert-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.login-alert-success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
}

/* Google Sign-In Butonu (Öne Çıkan) */
.btn-google-login {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: 14px;
  background: #ffffff;
  color: #1f2937;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-google-login:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2), 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

.google-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.btn-google-login.loading {
  pointer-events: none;
  opacity: 0.85;
}

/* Google Giriş Bilgilendirme Metni */
.google-login-hint {
  margin-top: 20px;
  font-size: 0.84rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.55;
  padding: 0 8px;
}

/* Alt Bağlantılar ve Güvenlik Rozeti */
.login-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.login-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.login-back-link:hover {
  color: var(--gold-light);
}

.login-security-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.login-security-tag svg {
  color: var(--gold);
}

/* Spinner Animasyonu */
.spinner-login {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: #1f2937;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Giriş Başarılı Karşılama Kartı */
.login-success-card {
  display: none;
  text-align: center;
  padding: 10px 0;
  animation: fadeIn 0.4s ease;
}

.login-user-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  box-shadow: 0 0 20px var(--gold-glow);
  margin: 0 auto 16px;
}

.login-user-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.login-user-email {
  font-size: 0.86rem;
  color: var(--gold-light);
  margin-bottom: 16px;
}

.redirect-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  margin-top: 16px;
}

.redirect-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--primary) 100%);
  animation: progressFill 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes progressFill {
  0% { width: 0%; }
  100% { width: 100%; }
}
