/* ==========================================================
   ACENTEDESTEK V2 — AUTH PAGES
   Brand: emerald #059669 / teal #0d9488
   ========================================================== */

*,*::before,*::after{box-sizing:border-box}
body{margin:0;padding:0;font-family:var(--ads-font);background:var(--ads-bg);color:var(--ads-text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
input,button,textarea,select{font:inherit}

/* ============================================
   SPLASH
   ============================================ */
.auth-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ads-bg);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.auth-splash.is-done {
  opacity: 0;
  pointer-events: none;
}

.auth-splash-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

/* --- Icon wrap: rings + SVG --- */
.auth-splash-icon-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ads-primary);
  margin-bottom: 6px;
}

.auth-splash-ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--ads-primary);
  opacity: 0;
}
.auth-splash-ring--1 { animation: sPulse 2.4s ease-out 0.1s infinite; }
.auth-splash-ring--2 { animation: sPulse 2.4s ease-out 0.8s infinite; }

@keyframes sPulse {
  0%   { transform: translate(-50%, -50%) scale(0.6); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(2.8); opacity: 0; }
}

/* Shield SVG draws itself */
.auth-splash-svg {
  width: 38px;
  height: 46px;
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: sFadeIn 0.01s ease 0.1s forwards;
}
@keyframes sFadeIn { to { opacity: 1; } }

.auth-splash-svg-shield {
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  animation: sDrawStroke 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.15s forwards;
}
.auth-splash-svg-check {
  stroke-dasharray: 32;
  stroke-dashoffset: 32;
  animation: sDrawStroke 0.38s cubic-bezier(0.4, 0, 0.2, 1) 0.88s forwards;
}
@keyframes sDrawStroke { to { stroke-dashoffset: 0; } }

/* --- Wordmark --- */
.auth-splash-row {
  display: flex;
  align-items: baseline;
  line-height: 1;
  gap: 0;
}

.auth-splash-letter {
  display: inline-block;
  font-family: var(--ads-font);
  font-weight: 800;
  font-size: clamp(28px, 6vw, 46px);
  letter-spacing: -0.03em;
  color: var(--ads-primary);
  opacity: 0;
  transform: translateY(6px);
  animation: sWordIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.88s forwards;
}
.auth-splash-rest {
  display: inline-block;
  font-family: var(--ads-font);
  font-weight: 700;
  font-size: clamp(20px, 4.5vw, 32px);
  letter-spacing: -0.02em;
  color: var(--ads-text);
  opacity: 0;
  transform: translateX(10px);
  animation: sFlowIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) 1.02s forwards;
}
.auth-splash-version {
  font-family: var(--ads-font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ads-text-muted);
  opacity: 0;
  animation: sFadeIn 0.4s ease 1.48s forwards;
}

@keyframes sWordIn { to { opacity: 1; transform: translateY(0); } }
@keyframes sFlowIn { to { opacity: 1; transform: translateX(0); } }

/* ============================================
   PAGE — Two-column on desktop
   ============================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  justify-content: center;
  background: var(--ads-bg);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.5s ease 0.1s;
}
.auth-page.is-visible { opacity: 1; }

/* Subtle dot grid on form side */
.auth-page::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   FORM SIDE
   ============================================ */
.auth-form-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--ads-sp-6);
  position: relative;
  z-index: 1;
  background:
    radial-gradient(ellipse 560px 460px at 50% 50%, rgba(5,150,105,0.04), transparent),
    radial-gradient(ellipse 300px 300px at 0% 50%, rgba(5,150,105,0.025), transparent);
}

@media (min-width: 960px) {
  .auth-form-side {
    flex: 0 0 480px;
    order: 2;
  }
}

.auth-form-wrap {
  width: 100%;
  max-width: 420px;
  background: var(--ads-surface-glass);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--ads-border);
  border-radius: var(--ads-radius-2xl);
  padding: var(--ads-sp-10) var(--ads-sp-8);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.06),
    0 4px 16px rgba(0,0,0,0.03),
    inset 0 1px 0 rgba(255,255,255,0.5);
  animation: authCardIn 0.7s cubic-bezier(0.23, 1, 0.32, 1) 0.2s both;
  position: relative;
  overflow: hidden;
}
.auth-form-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ads-primary), var(--ads-accent), transparent);
  opacity: 0.65;
}
@keyframes authCardIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Brand row */
.auth-brand {
  display: flex;
  align-items: center;
  gap: var(--ads-sp-3);
  margin-bottom: var(--ads-sp-8);
}
.auth-brand-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ads-primary);
  box-shadow: 0 0 10px var(--ads-primary-glow);
  animation: adsGlow 3s ease-in-out infinite;
  flex-shrink: 0;
}
.auth-brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--ads-primary) 0%, var(--ads-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.theme-dark .auth-brand-name,
[data-theme="dark"] .auth-brand-name {
  background: linear-gradient(135deg, #6ee7b7 0%, #5eead4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth-lang-switch {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.auth-lang-switch a {
  padding: 3px 6px;
  border-radius: var(--ads-radius-xs);
  font-size: 11px !important;
  font-weight: 600;
  color: var(--ads-text-muted) !important;
  text-decoration: none !important;
  transition: all var(--ads-dur-fast);
}
.auth-lang-switch a:hover { color: var(--ads-text) !important; }
.auth-lang-switch a.is-active {
  color: var(--ads-primary) !important;
  background: var(--ads-primary-light);
}

/* Headings */
.auth-title {
  font-size: var(--ads-text-2xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: var(--ads-lh-tight);
  color: var(--ads-text);
  margin: 0 0 var(--ads-sp-1);
}
.auth-sub {
  font-size: var(--ads-text-sm);
  color: var(--ads-text-muted);
  margin: 0 0 var(--ads-sp-6);
  line-height: var(--ads-lh);
}

/* Messages */
.auth-err {
  padding: var(--ads-sp-3) var(--ads-sp-4);
  border-radius: var(--ads-radius-lg);
  background: var(--ads-danger-bg);
  border: 1px solid var(--ads-danger-border);
  color: var(--ads-danger);
  font-size: var(--ads-text-sm);
  font-weight: 500;
  margin-bottom: var(--ads-sp-4);
  animation: adsFadeIn var(--ads-dur-fast) var(--ads-ease);
}
.auth-msg {
  padding: var(--ads-sp-3) var(--ads-sp-4);
  border-radius: var(--ads-radius-lg);
  background: var(--ads-success-bg);
  border: 1px solid var(--ads-success-border);
  color: var(--ads-success);
  font-size: var(--ads-text-sm);
  font-weight: 500;
  margin-bottom: var(--ads-sp-4);
  animation: adsFadeIn var(--ads-dur-fast) var(--ads-ease);
}

/* Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--ads-sp-1);
}
.auth-form label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ads-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  margin-top: var(--ads-sp-3);
}
.auth-form label:first-child { margin-top: 0; }

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  height: 46px;
  padding: 0 var(--ads-sp-4);
  border: 1px solid var(--ads-border-strong);
  border-radius: var(--ads-radius-lg);
  font-size: var(--ads-text-sm);
  font-family: var(--ads-font);
  background: var(--ads-bg);
  color: var(--ads-text);
  box-shadow: var(--ads-shadow-inset);
  transition: all var(--ads-dur-fast) var(--ads-ease);
  outline: none;
}
.auth-form input::placeholder { color: var(--ads-text-disabled); }
.auth-form input:focus {
  border-color: var(--ads-primary);
  box-shadow: 0 0 0 3px var(--ads-primary-light), var(--ads-shadow-inset);
  background: var(--ads-surface);
}

/* Primary button */
.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  margin-top: var(--ads-sp-5);
  border: none;
  border-radius: var(--ads-radius-lg);
  background: var(--ads-primary);
  color: #fff;
  font-size: var(--ads-text-sm);
  font-weight: 600;
  font-family: var(--ads-font);
  cursor: pointer;
  transition: all var(--ads-dur-fast) var(--ads-ease);
  box-shadow: 0 2px 14px var(--ads-primary-glow);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}
.auth-btn:hover {
  background: var(--ads-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(5,150,105,0.32);
}
.auth-btn:active { transform: translateY(0) scale(0.98); }
.auth-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
}
.auth-btn:hover::after { left: 100%; }

/* Meta row */
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ads-sp-4);
  margin-top: var(--ads-sp-5);
}
.auth-row a,
.auth-row button {
  font-size: 12px !important;
  color: var(--ads-text-muted) !important;
  text-decoration: none;
  font-weight: 500;
  transition: color var(--ads-dur-fast);
  background: none !important;
  border: none !important;
  padding: 0 !important;
  cursor: pointer;
}
.auth-row a:hover,
.auth-row button:hover { color: var(--ads-primary) !important; }

.auth-meta {
  margin-top: var(--ads-sp-3);
  font-size: var(--ads-text-xs);
  color: var(--ads-text-muted);
  text-align: center;
}

/* Footer */
.auth-foot {
  position: fixed;
  bottom: var(--ads-sp-5);
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--ads-text-disabled);
  white-space: nowrap;
  z-index: 1;
}

/* ============================================
   VISUAL SIDE — Desktop panel
   ============================================ */
.auth-visual-side {
  display: none;
}

@media (min-width: 960px) {
  .auth-visual-side {
    display: flex;
    flex: 0 0 58%;
    max-width: 900px;
    order: 1;
    position: relative;
    overflow: hidden;
    /* Video yüklenene kadar zarif fallback */
    background:
      radial-gradient(ellipse 70% 55% at 25% 30%, rgba(5,150,105,0.22) 0%, transparent 65%),
      radial-gradient(ellipse 50% 40% at 75% 75%, rgba(13,148,136,0.12) 0%, transparent 60%),
      #010f08;
    align-items: center;
    justify-content: flex-start;
    padding: 64px 52px 64px 64px;
  }

  /* Sağ kenarda form paneline yumuşak blur geçişi */
  .auth-visual-side::after {
    content: '';
    position: absolute;
    top: 0;
    right: -1px;
    width: 64px;
    height: 100%;
    background: linear-gradient(to right, transparent, var(--ads-bg));
    z-index: 10;
    pointer-events: none;
  }
}

/* Video arka plan */
.auth-vis-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  z-index: 0;
  opacity: 0.25;
  transition: opacity 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.auth-vis-video.is-loaded { opacity: 1; }

/* Overlay: çok katmanlı — sinematik his */
.auth-vis-overlay {
  position: absolute;
  inset: 0;
  background:
    /* Sağ kenara sert geçiş — form paneliyle birleşir */
    linear-gradient(to right, transparent 55%, rgba(1, 8, 5, 0.88) 100%),
    /* Sol üst köşeye hafif emerald glow */
    radial-gradient(ellipse 60% 50% at 20% 15%, rgba(5,150,105,0.18) 0%, transparent 100%),
    /* Genel koyu örtü — çok hafif, video parlasın */
    linear-gradient(160deg,
      rgba(0, 8, 4, 0.52) 0%,
      rgba(1, 16, 10, 0.38) 55%,
      rgba(2, 28, 18, 0.48) 100%
    );
  z-index: 1;
}

/* Alt: vignette + watermark maskeleme */
.auth-vis-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* Köşe vignet */
    radial-gradient(ellipse 100% 60% at 50% 100%, rgba(0,0,0,0.55) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(0,0,0,0.6) 0%, transparent 60%);
  pointer-events: none;
}

/* Geo background elements — video yoksa fallback görünür */
.auth-vis-geo {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.auth-vis-geo--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(52,211,153,0.07) 0%, transparent 70%);
  top: -160px; right: -140px;
  animation: visGeo 22s ease-in-out infinite;
}
.auth-vis-geo--2 {
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(45,212,191,0.06) 0%, transparent 70%);
  bottom: -100px; left: -80px;
  animation: visGeo 28s ease-in-out infinite reverse;
}
@keyframes visGeo {
  0%, 100% { transform: translate(0, 0); }
  33%       { transform: translate(28px, 18px); }
  66%       { transform: translate(-18px, 30px); }
}

/* Grid lines — çok hafif, sadece hissedilir */
.auth-vis-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
  z-index: 2;
  mask-image: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.15) 100%);
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.15) 100%);
}

/* Content */
.auth-vis-content {
  position: relative;
  z-index: 3;
  max-width: 400px;
  width: 100%;
}

.auth-vis-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  background: rgba(52,211,153,0.1);
  border: 1px solid rgba(52,211,153,0.18);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #6ee7b7;
  margin-bottom: 22px;
}
.auth-vis-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: adsGlow 2.4s ease-in-out infinite;
}

.auth-vis-headline {
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #fff;
  margin: 0 0 14px;
}

.auth-vis-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
  margin: 0 0 34px;
}

/* Feature list */
.auth-vis-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.auth-vis-feat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transform: translateX(-10px);
  animation: visFeatIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: background 0.2s, border-color 0.2s;
}
.auth-vis-feat:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(52,211,153,0.2);
}
.auth-vis-feat:nth-child(1) { animation-delay: 2.2s; }
.auth-vis-feat:nth-child(2) { animation-delay: 2.35s; }
.auth-vis-feat:nth-child(3) { animation-delay: 2.5s; }
.auth-vis-feat:nth-child(4) { animation-delay: 2.65s; }

@keyframes visFeatIn {
  to { opacity: 1; transform: translateX(0); }
}

.auth-vis-feat-icon {
  width: 32px; height: 32px;
  background: rgba(52,211,153,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #34d399;
  font-size: 16px;
}

/* Stats row */
.auth-vis-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin-bottom: 22px;
  opacity: 0;
  animation: sFadeIn 0.4s ease 2.8s both;
}

.auth-vis-stats {
  display: flex;
  gap: 28px;
  opacity: 0;
  animation: sFadeIn 0.4s ease 2.9s both;
}
.auth-vis-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.auth-vis-stat-n {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}
.auth-vis-stat-l {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================
   DARK MODE
   ============================================ */
.theme-dark .auth-form-wrap,
[data-theme="dark"] .auth-form-wrap {
  box-shadow:
    0 20px 60px rgba(0,0,0,0.3),
    0 4px 16px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.04);
}
.theme-dark .auth-page::after,
[data-theme="dark"] .auth-page::after {
  background-image: radial-gradient(circle, rgba(255,255,255,0.015) 1px, transparent 1px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 479px) {
  .auth-form-side { padding: var(--ads-sp-4); }
  .auth-form-wrap {
    max-width: 100%;
    padding: var(--ads-sp-8) var(--ads-sp-5);
    border-radius: var(--ads-radius-xl);
  }
  .auth-title { font-size: var(--ads-text-xl); }
  .auth-brand { margin-bottom: var(--ads-sp-6); }
}
