/* Premium auth pages (login / verify) */

/* Login: tam viewport, dikey scroll yok */
html.auth-page-full-root {
  height: 100%;
  overflow: hidden;
}

body.auth-page-full {
  margin: 0;
  min-height: 100%;
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

body.auth-page-full .auth-premium-bg {
  position: fixed;
  inset: 0;
  height: 100%;
  width: 100%;
}

body.auth-page-full .auth-shell {
  min-height: 100vh;
  min-height: 100dvh;
  height: 100%;
  max-height: 100dvh;
  padding: 16px 12px;
  box-sizing: border-box;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 56px 0;
}

.auth-premium-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(100, 70, 254, 0.20), rgba(100, 70, 254, 0) 55%),
    radial-gradient(900px 520px at 90% 30%, rgba(16, 185, 129, 0.14), rgba(16, 185, 129, 0) 55%),
    radial-gradient(900px 520px at 45% 95%, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0) 60%),
    linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(246, 247, 251, 0.85) 100%);
  filter: saturate(120%);
}

.auth-card {
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.10);
  overflow: hidden;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.92);
}

.auth-card-header {
  padding: 22px 22px 0 22px;
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.auth-brand img {
  height: 34px;
  width: auto;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(100, 70, 254, 0.10);
  color: #3b2fd1;
  font-weight: 600;
  font-size: 12px;
}

.auth-title {
  font-size: 22px;
  line-height: 28px;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  font-size: 13px;
  color: rgba(71, 85, 105, 1);
}

.auth-input {
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 1);
  background: rgba(248, 250, 252, 0.92);
}

.auth-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(100, 70, 254, 0.15);
  border-color: rgba(100, 70, 254, 0.55);
  background: #fff;
}

.auth-premium-btn {
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 26px rgba(100, 70, 254, 0.18);
}

.auth-help {
  font-size: 12px;
  color: rgba(100, 116, 139, 1);
}

.auth-footer {
  font-size: 12px;
  color: rgba(148, 163, 184, 1);
}

/* OTP input specific */
.auth-input--otp {
  text-align: center;
  letter-spacing: 0.25em;
  font-weight: 700;
}

.otp-hint {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
  flex-wrap: wrap;
}

.otp-pill {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 1);
  background: rgba(248, 250, 252, 0.9);
  color: rgba(71, 85, 105, 1);
}

/* 6-box code input (paste + auto-advance via auth-flow.js) */
.premium-otp {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 6px;
}

.premium-otp input {
  width: 44px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 1);
  background: rgba(255, 255, 255, 0.96);
  text-align: center;
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  outline: none;
}

.premium-otp input:focus {
  border-color: rgba(100, 70, 254, 0.65);
  box-shadow: 0 0 0 0.20rem rgba(100, 70, 254, 0.14);
}

@media (max-width: 420px) {
  .premium-otp { gap: 8px; }
  .premium-otp input { width: 40px; height: 50px; }
}

/* OTP süre halkası */
.auth-otp-countdown {
  position: relative;
  width: 96px;
  height: 96px;
  margin-left: auto;
  margin-right: auto;
}

.auth-otp-ring-svg {
  width: 96px;
  height: 96px;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(100, 70, 254, 0.12));
}

.auth-otp-ring-track {
  stroke: rgba(226, 232, 240, 0.95);
  stroke-width: 7;
}

.auth-otp-ring-progress {
  stroke: url(#authOtpRingGrad);
  stroke-width: 7;
  stroke-linecap: round;
  transition: stroke 0.35s ease;
}

.auth-otp-countdown--urgent .auth-otp-ring-progress {
  stroke: #dc2626;
}

.auth-otp-countdown--expired .auth-otp-ring-progress {
  stroke: #94a3b8;
}

.auth-otp-countdown-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  line-height: 1;
}

.auth-otp-countdown-value {
  font-size: 26px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
  letter-spacing: -0.03em;
}

.auth-otp-countdown-unit {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  margin-top: 2px;
}

.auth-otp-countdown--urgent .auth-otp-countdown-value {
  color: #b91c1c;
}

.auth-otp-countdown-hint {
  font-size: 12px;
  color: rgba(100, 116, 139, 1);
}

@keyframes auth-otp-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.03); opacity: 0.92; }
}

.auth-otp-countdown--urgent .auth-otp-ring-svg {
  animation: auth-otp-pulse 1.1s ease-in-out infinite;
}

/* Toast bildirimleri (login + OTP) */
.auth-toast-host {
  position: fixed;
  top: max(16px, env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(420px, calc(100vw - 24px));
  pointer-events: none;
}

.auth-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.14),
    0 0 0 1px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(12px);
  font-size: 14px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(-12px) scale(0.98);
  transition:
    opacity 0.28s ease,
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-toast--in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.auth-toast--out {
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
}

.auth-toast--info {
  background: rgba(255, 255, 255, 0.94);
  border-left: 4px solid #3b82f6;
  color: #0f172a;
}

.auth-toast--danger {
  background: rgba(254, 242, 242, 0.96);
  border-left: 4px solid #dc2626;
  color: #450a0a;
}

.auth-toast-msg {
  flex: 1;
  min-width: 0;
}

.auth-toast-close {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: inherit;
  opacity: 0.55;
  font-size: 22px;
  line-height: 1;
  padding: 0 0 0 4px;
  cursor: pointer;
  margin: -4px -4px -4px 0;
  border-radius: 8px;
}

.auth-toast-close:hover {
  opacity: 1;
  background: rgba(15, 23, 42, 0.06);
}

.auth-toast--danger .auth-toast-close:hover {
  background: rgba(220, 38, 38, 0.12);
}

