* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

body {
  height: 100vh;
  background: linear-gradient(to bottom right, #00284e, #0b1b2e, #0e1833);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.container {
  max-width: 420px;
  width: 90%;
  padding: 20px;
  animation: fadeIn 1.5s ease;
}

.logo {
  width: 100px;
  margin: 0 auto 20px;
}

.logo img {
  width: 100%;
  filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.2));
}

.title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 10px;
  animation: slideUp 1s ease;
}

.subtitle {
  font-size: 15px;
  color: #bbb;
  margin-bottom: 30px;
  animation: slideUp 1.2s ease;
}

.icon-circle {
  font-size: 48px;
  color: #1abc9c;
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 30px;
}

.dot {
  width: 10px;
  height: 10px;
  background-color: #999;
  border-radius: 50%;
  transition: background 0.3s;
}

.dot.active {
  background-color: #1abc9c;
}

.btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 16px;
  padding: 10px 0;
  border-radius: 30px;
  width: 100%;
  backdrop-filter: blur(10px);
  transition: background 0.3s;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.footer {
  font-size: 12px;
  color: #aaa;
  margin-top: 25px;
}

.input-box {
  margin-bottom: 20px;
  text-align: left;
}

.input-box label {
  display: block;
  font-weight: 500;
  font-size: 14px;
  color: #ccc;
  margin-bottom: 6px;
}

.input-box input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 14px;
  outline: none;
  backdrop-filter: blur(5px);
}

.input-box input::placeholder {
  color: #bbb;
}

.forgot {
  text-align: right;
  margin-top: -12px;
  margin-bottom: 20px;
}

.forgot a {
  font-size: 13px;
  color: #1abc9c;
  text-decoration: none;
}

.forgot a:hover {
  text-decoration: underline;
}

.btn.loading::after {
  content: '...';
  animation: dots 1s infinite;
}

.theme-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 999;
  color: #fff;
  font-size: 13px;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: #1abc9c;
}

input:checked+.slider:before {
  transform: translateX(20px);
}

/* Gece Modu Aktif */
body.dark-mode {
  background: linear-gradient(to bottom right, #121212, #1e1e1e);
  color: #f5f5f5;
}

body.dark-mode .subtitle,
body.dark-mode .footer,
body.dark-mode .input-box label {
  color: #ccc;
}

body.dark-mode .input-box input {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .btn {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/*
 * Gece Modunda Saat/Tarih Kutusu için Ek Stiller
 */
body.dark-mode .info-box {
  /* 1. Arka Planı Koyulaştır */
  background: linear-gradient(135deg, #1a1a1a, #2c2c2c);

  /* 2. Kenarlığı Daha Sönük Yap */
  border-color: rgba(255, 255, 255, 0.1);

  /* 3. Gölge Efektini Azalt veya Rengini Değiştir */
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);

  /* 4. Parlama Animasyonunu Daha Sönük Bir Renkle Değiştir */
  animation-name: boxGlowDarkMode;
  /* Yeni bir animasyon adı kullanıyoruz */
}

/* Gece Modu için yeni parlama animasyonu */
@keyframes boxGlowDarkMode {
  0% {
    box-shadow: 0 0 12px rgba(100, 100, 100, 0.2);
  }

  50% {
    box-shadow: 0 0 18px rgba(120, 120, 120, 0.3);
  }

  100% {
    box-shadow: 0 0 12px rgba(100, 100, 100, 0.2);
  }
}

.input-box label i {
  font-size: 14px;
  vertical-align: middle;
}

@keyframes dots {
  0% {
    content: '';
  }

  33% {
    content: '.';
  }

  66% {
    content: '..';
  }

  100% {
    content: '...';
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.light-beam {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

/* Küçük foton */
.foton {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 6px white, 0 0 12px rgba(255, 255, 255, 0.7);
  opacity: 0.9;
  animation: beamMove linear forwards;
}

/* Yoğun foton (büyük & parlak) */
.big-foton {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  box-shadow:
    0 0 25px white,
    0 0 50px #f1c40f,
    0 0 80px #e67e22;
  opacity: 1;
  animation: beamMoveBig linear forwards;
}

/* Küçüklerin hareketi */
@keyframes beamMove {
  0% {
    transform: translate(0, 0);
    opacity: 0.7;
  }

  100% {
    transform: translate(200vw, 200vh);
    opacity: 0;
  }
}

/* Büyük yoğun fotonun hareketi */
@keyframes beamMoveBig {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }

  100% {
    transform: translate(200vw, 200vh) scale(1.5);
    opacity: 0;
  }
}


.toast-success {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #27ae60;
  color: white;
  padding: 12px 18px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeIn 0.5s, fadeOut 0.5s 4s;
}

.toast-error {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #e74c3c;
  color: white;
  padding: 12px 18px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeIn 0.5s, fadeOut 0.5s 4s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.info-box {
  margin-top: 40px;
  padding: 16px 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0e2235, #112d49);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
  color: #fff;
  display: flex;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  animation: boxGlow 5s infinite alternate;
}

#datetime-box {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 15px;
  align-items: center;
}

#full-date {
  font-weight: 500;
  letter-spacing: 0.5px;
}

#clock-time {
  font-weight: bold;
  font-size: 17px;
}

@keyframes boxGlow {
  0% {
    box-shadow: 0 0 12px rgba(26, 188, 156, 0.2);
  }

  50% {
    box-shadow: 0 0 18px rgba(26, 188, 156, 0.5);
  }

  100% {
    box-shadow: 0 0 12px rgba(26, 188, 156, 0.2);
  }
}


.grecaptcha-badge {
  visibility: hidden;
}

/*
 * Mobil Uyumluluk Kodu (@media Sorguları)
 * Ekran boyutu 600 piksel ve altına düştüğünde geçerli olacak stiller.
 */
@media (max-width: 600px) {

  /* 1. Kapsayıcı Alanı Küçültme */
  .container {
    /* max-width zaten 420px, daha fazla küçültmeye gerek yok */
    width: 95%;
    /* Biraz daha geniş bir kullanım */
    padding: 15px;
  }

  /* 2. Başlık ve Alt Başlık Fontlarını Küçültme */
  .title {
    font-size: 24px;
    /* Başlığı küçült */
    margin-bottom: 5px;
  }

  .subtitle {
    font-size: 14px;
    /* Alt başlığı küçült */
    margin-bottom: 25px;
  }

  /* 3. İkon ve Logo Boyutlarını Küçültme */
  .icon-circle {
    font-size: 40px;
    margin-bottom: 15px;
  }

  .text-center.my-4 img {
    max-width: 80px !important;
    /* Logo boyutunu küçült */
  }

  /* 4. Giriş Kutularını Sıkıştırma */
  .input-box {
    margin-bottom: 15px;
  }

  .input-box input {
    padding: 10px;
    font-size: 14px;
  }

  /* 5. Tema Değiştirme ve Toast Konumları */
  .theme-toggle {
    top: 10px;
    /* Daha yukarı taşı */
    right: 10px;
    gap: 5px;
  }

  .toast-success,
  .toast-error {
    top: 10px;
    right: 10px;
    left: 10px;
    /* Tam genişlikte kullan */
    max-width: unset;
    font-size: 13px;
    padding: 10px 15px;
  }

  /* 6. Saat/Tarih Bilgi Kutusu Düzenlemesi */
  .info-box {
    margin-top: 25px;
    padding: 10px 15px;
  }

  #datetime-box {
    gap: 10px;
    flex-direction: column;
    /* Alt alta sırala */
    align-items: center;
  }

  #full-date {
    font-size: 14px;
  }

  #clock-time {
    font-size: 16px;
  }
}
