* {
  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) !important;
  background-attachment: fixed !important;
  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;
}

.btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #aaa;
  font-size: 16px;
  height: 45px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 30px;
  width: 100%;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.footer {
  font-size: 12px;
  color: #aaa;
  margin-top: 25px;
}

.input-box {
  margin-bottom: 20px !important;
  text-align: left !important;
}

.input-box label {
  display: block;
  font-weight: 500;
  font-size: 14px;
  color: #ccc;
  margin-bottom: 6px;
}

.input-box input,
.input-box .form-control {
  width: 100%;
  padding: 10px 15px !important;
  height: 45px !important;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: #fff !important;
  font-size: 14px;
  outline: none;
  backdrop-filter: blur(5px);
}

.input-box input:focus,
.input-box .form-control:focus {
  border-color: rgba(255, 255, 255, 0.2) !important;
  outline: none;
  background: rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
}

/* Tarayıcı Otomatik Doldurma (Autofill) Stillerini Düzeltme */
.input-box input:-webkit-autofill,
.input-box input:-webkit-autofill:hover,
.input-box input:-webkit-autofill:focus,
.input-box input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #0b1b2e inset !important;
  -webkit-text-fill-color: white !important;
  caret-color: white !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Tema Bazlı Autofill Düzeltmeleri */
body[data-theme="gray"] .input-box input:-webkit-autofill,
body[data-theme="gray"] .input-box input:-webkit-autofill:hover,
body[data-theme="gray"] .input-box input:-webkit-autofill:focus,
body[data-theme="gray"] .input-box input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #34495e inset !important;
}

body[data-theme="black"] .input-box input:-webkit-autofill,
body[data-theme="black"] .input-box input:-webkit-autofill:hover,
body[data-theme="black"] .input-box input:-webkit-autofill:focus,
body[data-theme="black"] .input-box input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #1a1a1a inset !important;
}

body[data-theme="rose"] .input-box input:-webkit-autofill,
body[data-theme="rose"] .input-box input:-webkit-autofill:hover,
body[data-theme="rose"] .input-box input:-webkit-autofill:focus,
body[data-theme="rose"] .input-box input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #880e4f inset !important;
}

body[data-theme="white"] .input-box input:-webkit-autofill,
body[data-theme="white"] .input-box input:-webkit-autofill:hover,
body[data-theme="white"] .input-box input:-webkit-autofill:focus,
body[data-theme="white"] .input-box input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #f0f2f5 inset !important;
  -webkit-text-fill-color: #333 !important;
  caret-color: #333 !important;
}

.input-box input::placeholder {
  color: #bbb;
}

/* Floating Label Uyumluluğu */
.input-box .form-floating>.form-control {
  padding: 1rem 0.75rem;
  height: calc(3.5rem + 2px);
  line-height: 1.25;
}

.input-box .form-floating>label {
  color: #ccc !important;
  padding-left: 14px;
  /* Input padding ile uyumlu olsun */
}

.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;
}

/* Tema Seçici (Yeni) */
.theme-selector {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 999;
}

.theme-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(5px);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(30deg);
}

.theme-menu {
  position: absolute;
  top: 50px;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  padding: 10px;
  width: 160px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  gap: 5px;
  backdrop-filter: blur(10px);
}

.theme-menu.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.theme-menu a {
  text-decoration: none;
  color: #333;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s;
}

.theme-menu a:hover {
  background: #f0f0f0;
}

/* Temalar */
/* Orjinal (Varsayılan) */
body[data-theme="original"] {
  background: linear-gradient(to bottom right, #00284e, #0b1b2e, #0e1833) !important;
}

/* Siyah Mod */
body[data-theme="black"] {
  background: linear-gradient(to bottom right, #000000, #1a1a1a, #2c2c2c) !important;
}

/* Gri Mod */
body[data-theme="gray"] {
  background: linear-gradient(to bottom right, #2c3e50, #34495e, #4a6572) !important;
}

/* Gül Kurusu Mod */
body[data-theme="rose"] {
  background: linear-gradient(to bottom right, #880e4f, #a41e4a, #d81b60) !important;
}

/* Beyaz Mod (Özel Ayarlar) */
body[data-theme="white"] {
  background: linear-gradient(to bottom right, #ffffff, #f0f2f5, #e9ecef) !important;
  color: #333;
}

body[data-theme="white"] .title {
  color: #2c3e50;
}

body[data-theme="white"] .subtitle,
body[data-theme="white"] .footer,
body[data-theme="white"] .input-box label {
  color: #555 !important;
}

body[data-theme="white"] .input-box input,
body[data-theme="white"] .input-box .form-control {
  background: rgba(0, 0, 0, 0.05) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  color: #333 !important;
}

body[data-theme="white"] .input-box input::placeholder {
  color: #888;
}

body[data-theme="white"] .btn {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #555;
}

body[data-theme="white"] .btn:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #000;
}

body[data-theme="white"] .theme-btn {
  background: rgba(0, 0, 0, 0.1);
  color: #333;
  border-color: rgba(0, 0, 0, 0.1);
}

.input-box label i {
  font-size: 14px;
  vertical-align: middle;
}

@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;
  will-change: transform, opacity;
}

/* 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;
  will-change: transform, opacity;
}

/* Küçüklerin hareketi */
@keyframes beamMove {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0.7;
  }

  100% {
    transform: translate3d(200vw, 200vh, 0);
    opacity: 0;
  }
}

/* Büyük yoğun fotonun hareketi */
@keyframes beamMoveBig {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }

  100% {
    transform: translate3d(200vw, 200vh, 0) 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);
  }
}

.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;
  }

  .theme-selector {
    top: 10px;
    right: 10px;
  }

  .toast-success,
  .toast-error {
    top: 10px;
    right: 10px;
    left: 10px;
    /* Tam genişlikte kullan */
    max-width: unset;
    font-size: 13px;
    padding: 10px 15px;
  }
}
