/**
 * Müşteri giriş sayfası — layout + tema uyumlu form stilleri
 */
body.customer-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem;
  background: var(--theme-bg, #0c1324) !important;
  position: relative;
  overflow-x: hidden;
}

body.customer-login::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 700px 600px at 0% 0%, rgba(var(--theme-primary-rgb, 0, 218, 243), 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 500px 500px at 100% 100%, rgba(var(--theme-secondary-rgb, 195, 245, 255), 0.04) 0%, transparent 50%);
}

body.customer-login > .login-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 64rem;
}

body.customer-login .input-field {
  background: rgba(21, 27, 45, 0.95) !important;
  color: var(--theme-secondary, #dce1fb) !important;
  border: 1px solid rgba(var(--theme-secondary-rgb, 195, 245, 255), 0.15) !important;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 0.875rem 1rem 0.875rem 2.75rem !important; /* pl-11 — ikon alanı */
  min-height: 3rem;
}

body.customer-login #password.input-field {
  padding-right: 2.75rem !important; /* göz ikonu */
}

body.customer-login .relative > .material-symbols-outlined {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 2;
  font-size: 1.25rem;
  line-height: 1;
  color: rgba(var(--theme-secondary-rgb, 186, 201, 204), 0.55);
}

body.customer-login .relative > button .material-symbols-outlined {
  position: static;
  transform: none;
  pointer-events: auto;
}

body.customer-login .input-field::placeholder {
  color: rgba(var(--theme-secondary-rgb, 186, 201, 204), 0.45) !important;
}

body.customer-login .input-field:focus,
body.customer-login .input-field:focus-visible {
  outline: none !important;
  border-color: rgba(var(--theme-primary-rgb), 0.5) !important;
  box-shadow: 0 0 0 3px rgba(var(--theme-primary-rgb), 0.12) !important;
  --tw-ring-color: rgba(var(--theme-primary-rgb), 0.2) !important;
  --tw-ring-shadow: 0 0 #0000 !important;
}

body.customer-login .spotlight-card::before {
  background: radial-gradient(circle, rgba(var(--theme-primary-rgb), 0.15) 0%, transparent 65%);
}

body.customer-login .glow-text {
  text-shadow: 0 0 24px rgba(var(--theme-primary-rgb), 0.35);
}

body.customer-login .btn-primary {
  background: linear-gradient(135deg, color-mix(in srgb, var(--theme-primary) 88%, #000), var(--theme-primary)) !important;
  color: #fff !important;
}

body.customer-login .login-logo-glow {
  box-shadow: 0 0 30px rgba(var(--theme-primary-rgb), 0.22);
}

body.customer-login .peer:checked ~ div,
body.customer-login .peer:checked + div {
  background: var(--theme-primary) !important;
  border-color: var(--theme-primary) !important;
}

body.customer-login label .relative > .material-symbols-outlined {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #fff !important;
  font-size: 14px;
  z-index: 3;
  pointer-events: none;
}

body.customer-login label .relative {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

html.light body.customer-login {
  background: #f1f5f9 !important;
}

html.light body.customer-login .input-field {
  background: #fff !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}

html.light body.customer-login .glass-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.08);
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in { animation: fade-in 0.5s ease-out both; }
.animate-fade-in-up { animation: fade-in-up 0.55s ease-out both; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.animate-float { animation: float 4s ease-in-out infinite; }

/* 2FA — pin_code_fields tarzı OTP (login-2fa.php) */
body.customer-login .pin-code-wrap {
  position: relative;
  min-height: 11rem;
}

body.customer-login .pin-code-grid {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin: 1.25rem 0 1rem;
  flex-wrap: nowrap;
}

body.customer-login .pin-digit {
  width: 3rem;
  height: 3.75rem;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  border-radius: 0.65rem;
  border: 2px solid rgba(var(--theme-secondary-rgb, 186, 201, 204), 0.12);
  background: color-mix(in srgb, var(--theme-bg, #111) 92%, #fff);
  color: var(--theme-secondary, #f8fafc);
  caret-color: var(--theme-primary);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  padding: 0;
  box-sizing: border-box;
}

body.customer-login .pin-digit:focus {
  outline: none;
  border-color: var(--theme-primary);
  background: color-mix(in srgb, var(--theme-bg, #111) 78%, var(--theme-primary));
  box-shadow: 0 0 0 3px rgba(var(--theme-primary-rgb), 0.15);
}

body.customer-login .pin-digit.pin-filled {
  border-color: rgba(var(--theme-primary-rgb), 0.45);
  background: rgba(var(--theme-primary-rgb), 0.08);
  color: var(--theme-primary);
}

body.customer-login .pin-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
  animation: pin-success-in 0.35s ease-out both;
}

body.customer-login .pin-success.is-visible {
  display: flex;
}

body.customer-login .pin-success-icon {
  font-size: 4.5rem;
  color: #22c55e;
  line-height: 1;
  filter: drop-shadow(0 0 18px rgba(34, 197, 94, 0.35));
}

body.customer-login .pin-success-title {
  margin: 1rem 0 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--theme-secondary);
}

body.customer-login .pin-success-sub {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: rgba(var(--theme-secondary-rgb, 186, 201, 204), 0.6);
}

body.customer-login .pin-code-view.is-hidden {
  display: none;
}

body.customer-login .twofa-otp-head {
  text-align: center;
  margin-bottom: 0.25rem;
}

body.customer-login .twofa-otp-head p {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(var(--theme-secondary-rgb, 186, 201, 204), 0.65);
  line-height: 1.5;
}

body.customer-login .twofa-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: rgba(var(--theme-secondary-rgb, 186, 201, 204), 0.55);
}

body.customer-login .twofa-timer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--theme-primary);
  animation: twofa-timer-blink 1s step-end infinite;
}

@keyframes twofa-timer-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

@keyframes pin-success-in {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

body.customer-login .twofa-backup-toggle {
  font-size: 0.8125rem;
  color: var(--theme-primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-weight: 600;
}

body.customer-login .twofa-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--theme-secondary);
  background: rgba(var(--theme-primary-rgb), 0.08);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.18);
  margin-bottom: 1.25rem;
}

html.light body.customer-login .pin-digit {
  background: #f1f5f9;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.12);
}

html.light body.customer-login .pin-digit.pin-filled {
  background: rgba(var(--theme-primary-rgb), 0.1);
  color: color-mix(in srgb, var(--theme-primary) 85%, #000);
}
