/**
 * Metrekarem — auth.css (NEOMORFİK)
 * giriş/kayıt/şifre sıfırlama sayfaları
 * app.css'ten sonra yüklenir — token'ları oradan alır.
 *
 * Markup aynı kalır, sadece görsel dil yenilenir.
 */

/* ═══════════════════════════════════════════════════════════
   ROOT
   ═══════════════════════════════════════════════════════════ */
body.auth-page {
     height: 100vh; 
     height: 100dvh; /* Mobil adres çubuğu uyumu için kritik */
     display: flex;
     flex-direction: column;
     overflow: hidden;
     position: relative;
   }

/* App ambient halolarını auth sayfalarında bastır */
body.auth-page::before,
body.auth-page::after { display: none !important; }

.page {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%; /* min-height: 100vh yerine */
}
@media (max-width: 860px) {
  .page { grid-template-columns: 1fr; }
  .page-left { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   SOL PANEL — koyu neomorfik + mor/pembe halolar
   ═══════════════════════════════════════════════════════════ */
.page-left {
  background: linear-gradient(160deg, var(--dark, #1a1d3a) 0%, var(--dark-2, #252852) 100%);
  position: sticky; /* EKLENDİ */
  top: 0;           /* EKLENDİ */
  height: 100vh;    /* EKLENDİ */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px 48px;
}

.page-left::before,
.page-left::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
}
.page-left::before {
  top: -15%; left: -10%;
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--purple, #7c5cff) 0%, transparent 70%);
  opacity: .55;
}
.page-left::after {
  bottom: -20%; right: -15%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--pink-sig, #e84aa3) 0%, transparent 70%);
  opacity: .45;
}

/* Brand (sol üst) */
.left-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
  text-decoration: none;
}
.left-brand:hover { text-decoration: none; }
.left-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  box-shadow:
    inset 1px 1px 2px rgba(255,255,255,.08),
    inset -1px -1px 2px rgba(0,0,0,.25);
}
.left-name {
  font-family: 'Syncopate', 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, #c4b5fd 45%, #f9a8d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* İçerik bloğu */
.left-content { position: relative; z-index: 1; }

.left-title {
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -.025em;
  margin-bottom: 18px;
}
.left-title em {
  font-style: normal;
  background: linear-gradient(135deg, #c4b5fd 0%, #f9a8d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.left-desc {
  font-size: 15px;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
  max-width: 380px;
  margin-bottom: 40px;
}

/* Stat kartları */
.left-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lstat {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.04);
  border: none;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow:
    inset 1px 1px 2px rgba(255,255,255,.06),
    inset -1px -1px 2px rgba(0,0,0,.28);
  transition: transform .25s cubic-bezier(0.16,1,0.3,1);
}
.lstat:hover { transform: translateX(3px); }

.lstat-ico {
  width: 40px; height: 40px;
  border-radius: 11px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  color: #fff;
  box-shadow: var(--sh-glow-sm, 0 4px 12px rgba(124,92,255,.28));
}
/* Logo paleti aksanları (teal / blue / pink) */
.li-b { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.li-t { background: linear-gradient(135deg, #2dd4bf, #0d9488); }
.li-g { background: linear-gradient(135deg, #fbbf24, #b45309); }

.lstat-val {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -.01em;
}
.lstat-lbl {
  font-size: 11px;
  color: rgba(255,255,255,.45);
  margin-top: 3px;
  font-weight: 500;
}

.left-foot {
  position: relative;
  z-index: 1;
  font-size: 11.5px;
  color: rgba(255,255,255,.32);
  letter-spacing: .02em;
}

/* ═══════════════════════════════════════════════════════════
   SAĞ PANEL — açık neomorfik form
   ═══════════════════════════════════════════════════════════ */
.page-right {
     display: flex;
     align-items: flex-start;
     justify-content: center;
     padding: 48px 28px;
     background: var(--bg, #eef0f8);
     overflow-y: auto;
     position: relative;
     min-height: 100vh; /* 100vh yerine 100% olmalı */
   }

/* Sağ panelde hafif ambient halolar */
.page-right::before,
.page-right::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  opacity: .22;
}
.page-right::before {
  top: 15%; right: -8%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--purple, #7c5cff), transparent 70%);
}
.page-right::after {
  bottom: 10%; left: -10%;
  width: 360px; height: 360px;
  background: radial-gradient(circle, var(--pink-sig, #e84aa3), transparent 70%);
}

.form-box {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
  padding-bottom: 24px;
}

/* Mobil brand */
.mobile-brand {
  display: none;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
  text-decoration: none;
}
@media (max-width: 860px) { .mobile-brand { display: flex; } }
.mobile-brand:hover { text-decoration: none; }
.mobile-brand img {
  width: 34px; height: 34px;
  object-fit: contain;
  padding: 4px;
  border-radius: 10px;
  background: var(--bg, #eef0f8);
  box-shadow: var(--neo-out-sm, 4px 4px 10px rgba(156,149,199,.18), -3px -3px 8px rgba(255,255,255,.90));
}
.mobile-brand span {
  font-family: 'Syncopate', 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--grad-signal, linear-gradient(135deg,#7c5cff 0%,#b04dff 50%,#e84aa3 100%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Başlıklar */
.form-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--txt, #1a1d3a);
  margin-bottom: 8px;
  letter-spacing: -.025em;
  line-height: 1.2;
}
.form-sub {
  font-size: 13.5px;
  color: var(--txt3, #9499b2);
  margin-bottom: 28px;
  font-weight: 500;
}
.form-sub a {
  color: var(--purple, #7c5cff);
  text-decoration: none;
  font-weight: 700;
}
.form-sub a:hover {
  background: var(--grad-signal, linear-gradient(135deg,#7c5cff 0%,#b04dff 50%,#e84aa3 100%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

/* Alert */
.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 16px 14px 20px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
  line-height: 1.55;
  border: none;
  background: var(--bg, #eef0f8);
  box-shadow: var(--neo-out-sm, 4px 4px 10px rgba(156,149,199,.18), -3px -3px 8px rgba(255,255,255,.90));
  position: relative;
  overflow: hidden;
}
.auth-alert::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
}
.auth-alert i {
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 16px;
}
.auth-alert.alert-error   { color: #b91c1c; }
.auth-alert.alert-error::before { background: #ef4444; }
.auth-alert.alert-error i { color: #ef4444; }

.auth-alert.alert-warn    { color: #b45309; }
.auth-alert.alert-warn::before { background: #f59e0b; }
.auth-alert.alert-warn i { color: #f59e0b; }

.auth-alert.alert-success { color: #047857; }
.auth-alert.alert-success::before { background: #10b981; }
.auth-alert.alert-success i { color: #10b981; }

.auth-alert.alert-info    { color: var(--purple-2, #b04dff); }
.auth-alert.alert-info::before { background: var(--grad-signal, linear-gradient(135deg,#7c5cff 0%,#b04dff 50%,#e84aa3 100%)); }
.auth-alert.alert-info i { color: var(--purple, #7c5cff); }

/* ═══════════════════════════════════════════════════════════
   FIELDS
   ═══════════════════════════════════════════════════════════ */
.auth-field { margin-bottom: 16px; }
.auth-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--txt2, #4a4e6e);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.field-row label { margin-bottom: 0; }

.forgot-link {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--purple, #7c5cff);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  letter-spacing: .01em;
  transition: opacity .2s;
  text-transform: none;
}
.forgot-link:hover {
  background: var(--grad-signal, linear-gradient(135deg,#7c5cff 0%,#b04dff 50%,#e84aa3 100%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

/* Input wrap (neomorfik inset) */
.field-wrap {
  position: relative;
  border-radius: 14px;
  background: var(--bg, #eef0f8);
  box-shadow: var(--neo-in-sm, inset 2px 2px 6px rgba(156,149,199,.20), inset -2px -2px 6px rgba(255,255,255,.90));
  transition: box-shadow .22s cubic-bezier(0.16,1,0.3,1);
}
.field-wrap:focus-within {
  box-shadow:
    inset 2px 2px 6px rgba(156,149,199,.20),
    inset -2px -2px 6px rgba(255,255,255,.90),
    0 0 0 3px rgba(124,92,255,.18);
}
.field-wrap > i:first-child {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: var(--txt3, #9499b2);
  pointer-events: none;
  transition: color .22s;
  z-index: 1;
}
.field-wrap:focus-within > i:first-child {
  color: var(--purple, #7c5cff);
}

.auth-field input {
  width: 100%;
  padding: 14px 16px 14px 42px;
  border: none;
  border-radius: 14px;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: var(--txt, #1a1d3a);
  outline: none;
  font-weight: 500;
}
.auth-field input::placeholder {
  color: var(--txt3, #9499b2);
  font-weight: 400;
}
.auth-field input.is-error {
  /* hata durumunda field-wrap'i hedef al */
}
.auth-field input.is-error + .pw-toggle,
.field-wrap:has(input.is-error) {
  box-shadow:
    inset 2px 2px 6px rgba(156,149,199,.20),
    inset -2px -2px 6px rgba(255,255,255,.90),
    0 0 0 2px rgba(239,68,68,.3);
}

.pw-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 16px;
  color: var(--txt3, #9499b2);
  background: none;
  border: none;
  padding: 6px;
  transition: color .22s;
  z-index: 1;
}
.pw-toggle:hover { color: var(--purple, #7c5cff); }

/* Remember + Submit */
.remember {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--txt2, #4a4e6e);
  cursor: pointer;
  margin-bottom: 22px;
  font-weight: 600;
}
.remember input {
  width: 17px; height: 17px;
  accent-color: var(--purple, #7c5cff);
  cursor: pointer;
}

.btn-submit {
  width: 100%;
  padding: 15px;
  background: var(--grad-signal, linear-gradient(135deg,#7c5cff 0%,#b04dff 50%,#e84aa3 100%));
  color: #fff;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--sh-glow-sm, 0 4px 12px rgba(124,92,255,.28));
  transition: transform .22s cubic-bezier(0.16,1,0.3,1), box-shadow .22s;
}
.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(124,92,255,.4);
}
.btn-submit:active:not(:disabled) { transform: translateY(0); }
.btn-submit:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
  box-shadow: var(--neo-out-sm, 4px 4px 10px rgba(156,149,199,.18), -3px -3px 8px rgba(255,255,255,.90));
}

.signup-prompt {
  text-align: center;
  font-size: 13px;
  color: var(--txt3, #9499b2);
  margin-top: 22px;
  font-weight: 500;
}
.signup-prompt a {
  background: var(--grad-signal, linear-gradient(135deg,#7c5cff 0%,#b04dff 50%,#e84aa3 100%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  text-decoration: none;
}
.signup-prompt a:hover { opacity: .85; }

/* OTP input */
.otp-input {
  text-align: center !important;
  font-size: 26px !important;
  letter-spacing: 10px !important;
  font-weight: 800 !important;
  padding: 18px 16px !important;
  background: var(--grad-signal, linear-gradient(135deg,#7c5cff 0%,#b04dff 50%,#e84aa3 100%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.otp-input::placeholder {
  -webkit-text-fill-color: var(--txt3, #9499b2) !important;
  letter-spacing: 6px !important;
}

/* Geri butonu */
.btn-back {
  width: 100%;
  padding: 13px;
  background: var(--bg, #eef0f8);
  color: var(--txt2, #4a4e6e);
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--neo-out-sm, 4px 4px 10px rgba(156,149,199,.18), -3px -3px 8px rgba(255,255,255,.90));
  transition: all .22s cubic-bezier(0.16,1,0.3,1);
}
.btn-back:hover { color: var(--purple, #7c5cff); transform: translateY(-1px); }
.btn-back:active {
  box-shadow: var(--neo-in-sm, inset 2px 2px 6px rgba(156,149,199,.20), inset -2px -2px 6px rgba(255,255,255,.90));
  transform: translateY(0);
}

/* OTP timer */
.otp-timer {
  text-align: center;
  font-size: 12.5px;
  color: var(--txt3, #9499b2);
  margin: 10px 0 18px;
  font-weight: 600;
}
.otp-timer strong {
  background: var(--grad-signal, linear-gradient(135deg,#7c5cff 0%,#b04dff 50%,#e84aa3 100%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  letter-spacing: .02em;
}

/* ═══════════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(26,29,58,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }

.modal {
  background: var(--bg, #eef0f8);
  border-radius: 24px;
  box-shadow:
    10px 10px 28px rgba(28,32,60,.28),
    -6px -6px 18px rgba(255,255,255,.06);
  width: 100%;
  max-width: 440px;
  transform: translateY(16px) scale(.96);
  transition: transform .3s cubic-bezier(0.16,1,0.3,1);
  overflow: hidden;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: none;
  position: relative;
}
.modal-head::after {
  content: "";
  position: absolute;
  left: 24px; right: 24px; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(156,149,199,.28), transparent);
}
.modal-head h2 {
  font-size: 16px;
  font-weight: 800;
  color: var(--txt, #1a1d3a);
  letter-spacing: -.01em;
}

.modal-close {
  width: 32px; height: 32px;
  border-radius: 10px;
  border: none;
  background: var(--bg, #eef0f8);
  cursor: pointer;
  color: var(--txt2, #4a4e6e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: var(--neo-out-sm, 4px 4px 10px rgba(156,149,199,.18), -3px -3px 8px rgba(255,255,255,.90));
  transition: all .22s;
}
.modal-close:hover { color: var(--pink-sig, #e84aa3); }
.modal-close:active {
  box-shadow: var(--neo-in-sm, inset 2px 2px 6px rgba(156,149,199,.20), inset -2px -2px 6px rgba(255,255,255,.90));
}

.modal-body { padding: 24px; }
.modal-desc {
  font-size: 13.5px;
  color: var(--txt2, #4a4e6e);
  line-height: 1.65;
  margin-bottom: 18px;
}

.modal-foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 24px 20px;
  border-top: none;
  background: transparent;
  position: relative;
}
.modal-foot::before {
  content: "";
  position: absolute;
  left: 24px; right: 24px; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(156,149,199,.28), transparent);
}

.btn-modal-cancel {
  padding: 11px 20px;
  border-radius: 12px;
  border: none;
  background: var(--bg, #eef0f8);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--txt2, #4a4e6e);
  cursor: pointer;
  box-shadow: var(--neo-out-sm, 4px 4px 10px rgba(156,149,199,.18), -3px -3px 8px rgba(255,255,255,.90));
  transition: all .22s;
}
.btn-modal-cancel:hover { color: var(--txt, #1a1d3a); }
.btn-modal-cancel:active {
  box-shadow: var(--neo-in-sm, inset 2px 2px 6px rgba(156,149,199,.20), inset -2px -2px 6px rgba(255,255,255,.90));
}

.btn-modal-primary {
  padding: 11px 22px;
  border-radius: 12px;
  border: none;
  background: var(--grad-signal, linear-gradient(135deg,#7c5cff 0%,#b04dff 50%,#e84aa3 100%));
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--sh-glow-sm, 0 4px 12px rgba(124,92,255,.28));
  transition: transform .22s, box-shadow .22s;
}
.btn-modal-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(124,92,255,.4);
}
.btn-modal-primary:active:not(:disabled) { transform: translateY(0); }
.btn-modal-primary:disabled { opacity: .5; cursor: not-allowed; }

.modal-step { display: none; }
.modal-step.active { display: block; }

.modal-success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--grad-signal, linear-gradient(135deg,#7c5cff 0%,#b04dff 50%,#e84aa3 100%));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  margin: 0 auto 16px;
  box-shadow: var(--sh-glow, 0 10px 24px rgba(124,92,255,.3));
}
.modal-success-txt { text-align: center; }
.modal-success-txt h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--txt, #1a1d3a);
  margin-bottom: 8px;
  letter-spacing: -.01em;
}
.modal-success-txt p {
  font-size: 13.5px;
  color: var(--txt2, #4a4e6e);
  line-height: 1.65;
}
.modal-success-txt p strong {
  background: var(--grad-signal, linear-gradient(135deg,#7c5cff 0%,#b04dff 50%,#e84aa3 100%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .page-right { padding: 36px 20px; }
  .form-title { font-size: 22px; }
}
@media (max-width: 480px) {
 .page-right { padding: 24px 16px 80px 16px; }
  .form-title { font-size: 20px; }
  .btn-submit { padding: 14px; font-size: 13.5px; }
}
