/* style.css */

/* Değişkenler */
:root {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --accent-primary: #8e44ad; /* Mor */
  --accent-secondary: #3498db; /* Mavi */
  --error-color: #e74c3c; /* Kırmızı */
  --success-color: #2ecc71; /* Yeşil */
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #2c3e50, var(--bg-primary)); /* Değişken kullanımı */
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-primary); /* Değişken kullanımı */
}

/* Konteyner stili */
.container {
  background: var(--bg-secondary); /* Değişken kullanımı */
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  width: 400px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeIn 0.5s ease-out; /* Animasyon eklendi */
}

/* Başlık stili */
h2 {
  text-align: center;
  color: var(--text-primary); /* Değişken kullanımı */
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 1px;
}

/* Form grubu stili */
.form-group {
  margin-bottom: 1rem; /* Boşluk azaltıldı */
  position: relative;
}

/* Etiket stili */
label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary); /* Değişken kullanımı */
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

/* Input stili */
input {
  width: 100%;
  padding: 12px 15px;
  background: var(--bg-primary); /* Değişken kullanımı */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--text-primary); /* Değişken kullanımı */
  transition: all 0.3s ease;
}

/* Input focus efekti */
input:focus {
  border-color: var(--accent-primary); /* Değişken kullanımı */
  outline: none;
  box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.2);
}

/* Buton stili */
.btn {
  background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary)); /* Değişken kullanımı */
  color: var(--text-primary); /* Değişken kullanımı */
  padding: 12px;
  border: none;
  border-radius: 8px;
  width: 100%;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.5px;
  margin-bottom: 1rem; /* Buton altına boşluk eklendi */
}

/* Buton hover efekti */
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(142, 68, 173, 0.3);
}

/* Buton active efekti */
.btn:active {
  transform: translateY(0);
}

/* Hata mesajı stili */
.error {
  color: var(--error-color); /* Değişken kullanımı */
  margin-bottom: 1.5rem;
  text-align: center;
  padding: 10px;
  background: rgba(231, 76, 60, 0.1);
  border-radius: 6px;
  font-size: 0.9rem;
}

/* Başarı mesajı stili */
.success {
  color: var(--success-color); /* Değişken kullanımı */
  margin-bottom: 1.5rem;
  text-align: center;
  padding: 10px;
  background: rgba(46, 204, 113, 0.1);
  border-radius: 6px;
  font-size: 0.9rem;
}

/* Giriş linki stili */
.login-link {
  text-align: center;
  margin-top: 1rem; /* Boşluk azaltıldı */
  color: var(--text-secondary); /* Değişken kullanımı */
  font-size: 0.9rem;
}

.login-link a {
  color: var(--accent-secondary); /* Değişken kullanımı */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.login-link a:hover {
  color: var(--accent-primary); /* Değişken kullanımı */
  text-decoration: underline;
}

/* Şifremi unuttum linki için stil */
.forgot-password {
  text-align: right;
  margin-bottom: 1rem;
}

.forgot-password a {
  color: var(--accent-secondary); /* Değişken kullanımı */
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.forgot-password a:hover {
  color: var(--accent-primary); /* Değişken kullanımı */
  text-decoration: underline;
}

/* Telegram butonu stili */
.telegram-btn {
  background-color: #0088cc;
  color: white;
  border: none;
}

/* Buton satırı stili */
.button-row {
  display: block;
  width: 100%;
  margin-bottom: 0;
}

/* Form animasyonları */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Input focus efekti */
input:focus::placeholder {
  opacity: 0.7;
  transform: translateX(5px);
  transition: all 0.3s ease;
}

/* Özel scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary); /* Değişken kullanımı */
}

::-webkit-scrollbar-thumb {
  background: var(--accent-primary); /* Değişken kullanımı */
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-secondary); /* Değişken kullanımı */
}

/* Dashboard özellikleri */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.stat-card {
  background: var(--bg-primary); /* Değişken kullanımı */
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card h3 {
  color: var(--text-secondary); /* Değişken kullanımı */
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.stat-card p {
  color: var(--text-primary); /* Değişken kullanımı */
  font-size: 1.5rem;
  font-weight: 600;
}

/* Şifre güçlülük göstergesi */
.password-strength {
  height: 4px;
  background: var(--bg-primary); /* Değişken kullanımı */
  margin-top: 5px;
  border-radius: 2px;
  overflow: hidden;
}

.password-strength div {
  height: 100%;
  width: 0;
  transition: width 0.3s ease;
  border-radius: 2px;
}

.strength-weak {
  background: var(--error-color); /* Değişken kullanımı */
}

.strength-medium {
  background: #f39c12;
}

.strength-strong {
  background: var(--success-color); /* Değişken kullanımı */
}

/* Mobil responsive */
@media (max-width: 480px) {
  .container {
    width: 90%;
    padding: 1.5rem;
    margin: 1rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .btn {
    padding: 10px;
  }

/* ... diğer stiller ... */

.telegram-btn {
  /* ... diğer stiller ... */
  display: block;
  width: 100%;
  text-align: center;
  background-color: #0088cc; /* Mavi arka plan rengi */
  color: white; /* Beyaz metin rengi */
  border: none; /* Kenarlık yok */
}

.login-link {
  margin-top: 20px; /* "Kayıt Ol" linkini biraz yukarı taşı */
/* Şifre alanının stilini sıfırla */
#password {
  background-color: transparent; /* Arka planı transparan yap */
  border: none; /* Kenarlığı kaldır */
  outline: none; /* Odaklanınca oluşan çizgiyi kaldır */
  padding: 0; /* İç boşluğu sıfırla */
}

/* Şifre alanının kapsayıcısını şekillendir */
.form-group:nth-of-type(2) { /* İkinci form grubunu seç */
  position: relative; /* Pozisyonunu relative yap */
  background-color: black; /* Arka planı siyah yap */
  border-radius: 5px; /* Köşeleri hafifçe yuvarla */
  overflow: hidden; /* Kutunun dışına taşanları gizle */
}

/* Şifre alanının kapsayıcısına hover efekti ekle */
.form-group:nth-of-type(2):hover::before {
  content: ''; /* İçerik oluştur */
  position: absolute; /* Pozisyonunu absolute yap */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  background: radial-gradient(circle at 50% 50%, red, orange, yellow, green, blue, indigo, violet); /* Renkli gradyan oluştur */
  border-radius: 50%; /* Elips şekli ver */
  animation: spin 2s linear infinite; /* Döndürme animasyonu ekle */
  opacity: 0.5; /* Şeffaflık ekle */
}

/* Döndürme animasyonu */
@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* "Şifremi Unuttum" kutusunu küçült ve sağa yasla */
.forgot-password {
  /* ...diğer stiller... */
  font-size: 12px; /* Yazı boyutunu küçült */
  padding: 3px 8px; /* İç boşluğu azalt */
  float: right; /* Sağa yasla */
}

/* Mobil uyumluluk için */
@media (max-width: 768px) { 
  .sidebar {
    width: 200px; /* Sidebar genişliğini mobilde azalt */
    left: -200px; /* Başlangıçta sidebar'ı gizle */
  }

  .content {
    margin-left: 0; /* Başlangıçta content'in solunda boşluk bırakma */
  }

  .content.open {
    margin-left: 200px; /* Sidebar açıkken content'in solunda boşluk bırak */
  }
}
.resend-link {
    color: #007BFF; /* Mavi renk */
    text-decoration: underline; /* Altı çizili */
    font-weight: bold; /* Kalın yazı */
    font-size: 14px; /* Yazı boyutu */
    cursor: pointer; /* İmleç değişikliği */
}

.resend-link:hover {
    color: #0056b3; /* Daha koyu mavi hover efekti */
}
.notice {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}
/* Kullanıcı uyarısı için stil */
.temp-email-warning {
    background-color: #f0ad4e; /* Sarı arka plan */
    color: #fff; /* Beyaz metin */
    padding: 10px;
    margin-top: 20px;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
}

.temp-email-warning:hover {
    background-color: #ec971f; /* Hover durumunda daha koyu sarı */
}


