body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.login-box {
  background: #fff;
  padding: 40px 50px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 380px;
  width: 90%;
}

.logo-area img {
  width: 200px;
  margin-bottom: 10px;
}

.logo-area h2 {
  color: #111827;
  margin-bottom: 6px;
}

.logo-area .subtitle {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 25px;
}

.input-group {
  display: flex;
  align-items: center;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 10px 12px;
}

.input-group i {
  color: #6b7280;
  margin-right: 8px;
}

.input-group input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 15px;
  color: #111827;
}

.btn-login {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #2563eb, #1e40af);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-login:hover {
  background: linear-gradient(90deg, #1e40af, #1d4ed8);
}

.toast.error {
  background: #fee2e2;
  color: #b91c1c;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 15px;
  text-align: left;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-text {
  font-size: 13px;
  color: #9ca3af;
  margin-top: 25px;
}


/* === Spinner (dönen yuvarlak) === */
.btn-login.is-loading {
  position: relative;
  cursor: default;
  opacity: 0.95;
}

.login-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.login-loading .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);   /* arka halka */
  border-top-color: #ffffff;                  /* ön halka (renk) */
  border-radius: 50%;
  animation: spin .8s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* --- Spinner (Loader) --- */
.loader {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Login sırasında buton animasyonu */
.btn-login.is-loading {
  position: relative;
  cursor: wait;
  background: linear-gradient(90deg, #1e40af, #1d4ed8);
  opacity: 0.9;
}
