/* ================================================================
   login.css — Giriş Ekranı Modern UI
   Kuaförüm Yanımda Admin Panel
================================================================ */

/* ── Genel sıfırlama ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: #F1F5F9;
  min-height: 100vh;
}

/* ── Preloader ───────────────────────────────────────────────── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Ana wrapper ─────────────────────────────────────────────── */
.main-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Auth wrapper ────────────────────────────────────────────── */
.auth-wrapper {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #4338CA 100%) !important;
  padding: 1rem;
}

/* Dekoratif daire efektleri */
.auth-wrapper::before,
.auth-wrapper::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  opacity: 0.12;
  background: #fff;
  pointer-events: none;
}
.auth-wrapper::before {
  width: 500px; height: 500px;
  top: -150px; left: -150px;
}
.auth-wrapper::after {
  width: 350px; height: 350px;
  bottom: -100px; right: -80px;
}

/* ── Auth kutusu ─────────────────────────────────────────────── */
.auth-box {
  background: #fff !important;
  border-radius: 20px !important;
  box-shadow:
    0 25px 60px rgba(79,70,229,0.22),
    0 4px 16px rgba(0,0,0,0.08) !important;
  padding: 2.5rem !important;
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
  animation: loginFadeUp 0.45s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes loginFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Marka alanı ─────────────────────────────────────────────── */
.auth-box .logo {
  text-align: center;
  margin-bottom: 1.75rem;
}
.auth-box .logo::before {
  content: '✂️';
  display: block;
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}
.auth-box .logo .box-title,
.auth-box .logo h3 {
  font-size: 1.55rem !important;
  font-weight: 800 !important;
  color: #1E293B !important;
  margin: 0 0 0.25rem !important;
  letter-spacing: -0.02em;
}
.auth-box .logo .text-muted {
  font-size: 0.83rem;
  color: #64748B !important;
  line-height: 1.5;
  display: block;
  margin-top: 0.35rem;
}

/* ── Form elemanları ─────────────────────────────────────────── */
.auth-box .form-group { margin-bottom: 1rem; }

.auth-box .form-control {
  border-radius: 10px !important;
  border: 1.5px solid #E2E8F0 !important;
  padding: 0.7rem 1rem !important;
  font-size: 0.92rem !important;
  color: #1E293B !important;
  background: #F8FAFC !important;
  transition: border-color 0.18s, box-shadow 0.18s !important;
  box-shadow: none !important;
  height: auto !important;
}
.auth-box .form-control::placeholder { color: #94A3B8 !important; }
.auth-box .form-control:focus {
  border-color: #4F46E5 !important;
  background: #fff !important;
  box-shadow: 0 0 0 3.5px rgba(79,70,229,0.12) !important;
  outline: none !important;
}

/* ── reCAPTCHA container ─────────────────────────────────────── */
#recaptcha-container {
  display: flex;
  justify-content: center;
  min-height: 76px;
}

/* ── Giriş Yap butonu ────────────────────────────────────────── */
#girisBtn {
  display: block;
  width: 100% !important;
  padding: 0.75rem 1rem !important;
  border-radius: 10px !important;
  border: none !important;
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%) !important;
  color: #fff !important;
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.2s !important;
  box-shadow: 0 4px 14px rgba(79,70,229,0.35) !important;
  text-transform: uppercase;
}
#girisBtn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(79,70,229,0.42) !important;
}
#girisBtn:active { transform: translateY(0); }
#girisBtn:disabled { opacity: 0.65; cursor: not-allowed; }

/* ── Kayıt Ol alanı ──────────────────────────────────────────── */
.auth-box .form-group p {
  color: #475569 !important;
  font-size: 0.84rem !important;
  margin-bottom: 0.4rem !important;
}
.auth-box .form-group p b { color: #1E293B; }

#registerButton {
  display: block;
  width: 100% !important;
  padding: 0.7rem 1rem !important;
  border-radius: 10px !important;
  border: 1.5px solid #4F46E5 !important;
  background: transparent !important;
  color: #4F46E5 !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  text-align: center;
  transition: all 0.18s !important;
  text-transform: uppercase;
}
#registerButton:hover {
  background: #4F46E5 !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(79,70,229,0.25) !important;
}

/* ── Doğrulama formu ─────────────────────────────────────────── */
#verifyform .logo h3 {
  font-size: 1.45rem !important;
  font-weight: 800 !important;
  color: #1E293B !important;
}
#verifyform .logo .text-muted {
  font-size: 0.83rem;
  color: #64748B !important;
  line-height: 1.5;
}

/* OTP input */
#verificationCode {
  border-radius: 10px !important;
  border: 1.5px solid #E2E8F0 !important;
  padding: 0.7rem 1rem !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  text-align: center !important;
  color: #4F46E5 !important;
  background: #F8FAFC !important;
  letter-spacing: 0.3em !important;
  transition: border-color 0.18s, box-shadow 0.18s !important;
  box-shadow: none !important;
  height: auto !important;
  width: 100%;
}
#verificationCode:focus {
  border-color: #4F46E5 !important;
  background: #fff !important;
  box-shadow: 0 0 0 3.5px rgba(79,70,229,0.12) !important;
  outline: none !important;
}

/* Doğrula butonu */
#verifyButton {
  display: block;
  width: 100% !important;
  padding: 0.75rem 1rem !important;
  border-radius: 10px !important;
  border: none !important;
  background: linear-gradient(135deg, #059669 0%, #10B981 100%) !important;
  color: #fff !important;
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.2s !important;
  box-shadow: 0 4px 14px rgba(16,185,129,0.32) !important;
  text-transform: uppercase;
}
#verifyButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(16,185,129,0.4) !important;
}

/* ── Ayırıcı ─────────────────────────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  color: #CBD5E1;
  font-size: 0.75rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E2E8F0;
}

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .auth-box {
    padding: 1.75rem 1.25rem !important;
    border-radius: 16px !important;
  }
  .auth-box .logo .box-title,
  .auth-box .logo h3 { font-size: 1.3rem !important; }
}
