/* ═══════════════════════════════════════════════════
   Login — shell
   ═══════════════════════════════════════════════════ */

.login-body {
  margin: 0;
  background: var(--ds-background-200);
  color: var(--fg);
  font-family: 'Geist', 'Geist Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

html, body {
  height: 100%;
}

.login-split {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

/* ── Sol panel ─────────────────────────── */
.login-left {
  /* Design-system tokens (sol panel kompozisyonu) */
  --canvas-w:        720px;
  --canvas-pad-x:     48px;
  --canvas-pad-top:   48px;
  --canvas-pad-bot:   28px;
  --canvas-gap:       28px;
  --frame-stroke:     1px;
  --frame-color:      rgba(255,255,255,0.32);
  --caption-color:    rgba(255,255,255,0.38);

  position: relative;
  flex: 1 1 50%;
  min-width: 0;
  background: var(--ds-gray-1000);
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--canvas-pad-top) var(--canvas-pad-x) var(--canvas-pad-bot);
}

/* Canvas: tanımlı kompozisyon çerçevesi — her ekranda korunur */
.login-left-canvas {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--canvas-w);
  flex: 1;
  max-height: 920px;
  display: flex;
  flex-direction: column;
  gap: var(--canvas-gap);
  min-height: 0;
}

/* Stage: pipeline'ın yaşadığı tanımlı bölge */
.login-left-stage {
  position: relative;
  flex: 1;
  min-height: 360px;
}

/* Stage corner brackets — design-system frame işaretleri */
.stage-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  opacity: 0;
  animation: stage-corner-in 500ms var(--ease) 500ms forwards;
}
.stage-corner-tl { top: 0; left: 0;
  border-top:  var(--frame-stroke) solid var(--frame-color);
  border-left: var(--frame-stroke) solid var(--frame-color);
}
.stage-corner-tr { top: 0; right: 0;
  border-top:   var(--frame-stroke) solid var(--frame-color);
  border-right: var(--frame-stroke) solid var(--frame-color);
}
.stage-corner-bl { bottom: 0; left: 0;
  border-bottom: var(--frame-stroke) solid var(--frame-color);
  border-left:   var(--frame-stroke) solid var(--frame-color);
}
.stage-corner-br { bottom: 0; right: 0;
  border-bottom: var(--frame-stroke) solid var(--frame-color);
  border-right:  var(--frame-stroke) solid var(--frame-color);
}

@keyframes stage-corner-in {
  to { opacity: 1; }
}

/* Stage captions — monospace teknik etiketler */
.stage-caption {
  position: absolute;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  line-height: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--caption-color);
  opacity: 0;
  white-space: nowrap;
  animation: stage-corner-in 500ms var(--ease) 700ms forwards;
}
.stage-caption-top    { top: 22px;    left: 28px; }
.stage-caption-bottom { bottom: 22px; right: 28px; }


.login-left-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.login-left-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 50%, transparent 55%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

/* ── Linear grid (kurumsal çizgi pattern) ── */
.login-left-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right,  rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 85%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 85%);
}

/* ── Pipeline (soru üretim hattı) ──────── */
.login-left-pipeline {
  position: absolute;
  inset: 24px 12px;
  width: calc(100% - 24px);
  height: calc(100% - 48px);
  pointer-events: none;
}

.pipeline-path {
  fill: none;
  stroke: rgba(255,255,255,0.22);
  stroke-width: 1.25;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: pipeline-draw 5s cubic-bezier(.45,.05,.25,1) 600ms forwards;
}

@keyframes pipeline-draw {
  to { stroke-dashoffset: 0; }
}

.pipeline-station {
  --enter-delay: 0ms;
  --cycle-delay: 0s;
}

.pipeline-stations .pipeline-station:nth-child(1) { --enter-delay: 1000ms; --cycle-delay: 0s;   }
.pipeline-stations .pipeline-station:nth-child(2) { --enter-delay: 1450ms; --cycle-delay: -12s; }
.pipeline-stations .pipeline-station:nth-child(3) { --enter-delay: 1900ms; --cycle-delay: -9s;  }
.pipeline-stations .pipeline-station:nth-child(4) { --enter-delay: 2350ms; --cycle-delay: -6s;  }
.pipeline-stations .pipeline-station:nth-child(5) { --enter-delay: 2800ms; --cycle-delay: -3s;  }

.pipeline-station-ring {
  fill: none;
  stroke: rgba(255,255,255,0.3);
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation:
    pipeline-fade-in 500ms ease-out var(--enter-delay) forwards,
    pipeline-station-cycle 15s ease-in-out var(--cycle-delay) infinite;
}

.pipeline-station-core {
  fill: rgba(255,255,255,0.7);
  opacity: 0;
  animation: pipeline-fade-in 500ms ease-out var(--enter-delay) forwards;
}

@keyframes pipeline-fade-in {
  to { opacity: 1; }
}

@keyframes pipeline-station-cycle {
  0%, 6%, 100% {
    stroke: rgba(255,255,255,0.95);
    stroke-width: 1.75;
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.55));
  }
  14%, 92% {
    stroke: rgba(255,255,255,0.3);
    stroke-width: 1.25;
    filter: none;
  }
}

.pipeline-labels text {
  fill: rgba(255,255,255,0.65);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  dominant-baseline: central;
  opacity: 0;
  animation: pipeline-fade-in 500ms ease-out forwards;
}

.pipeline-labels text:nth-child(1) { animation-delay: 1100ms; }
.pipeline-labels text:nth-child(2) { animation-delay: 1550ms; }
.pipeline-labels text:nth-child(3) { animation-delay: 2000ms; }
.pipeline-labels text:nth-child(4) { animation-delay: 2450ms; }
.pipeline-labels text:nth-child(5) { animation-delay: 2900ms; }

.pipeline-tokens circle {
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.7));
}

/* Token'ler animateMotion begin'inden önce SVG (0,0) köşesinde görünmesin */
.pipeline-token {
  opacity: 0;
}
.pipeline-token-1 { animation: pipeline-token-on-1 300ms ease-out 3.5s  forwards; }
.pipeline-token-2 { animation: pipeline-token-on-2 300ms ease-out 7s    forwards; }
.pipeline-token-3 { animation: pipeline-token-on-3 300ms ease-out 10.5s forwards; }

@keyframes pipeline-token-on-1 { to { opacity: 1;   } }
@keyframes pipeline-token-on-2 { to { opacity: 0.75; } }
@keyframes pipeline-token-on-3 { to { opacity: 0.5; } }

/* ── Center spot (atmosfer ipucu) ──────── */
.login-left-spot {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 40% at 50% 45%, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.login-left-grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.06;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.login-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 1;
}

.login-brand-wordmark {
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
}

.login-brand-meta {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.5);
}

.login-left-foot {
  position: relative;
  margin-top: auto;
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  font-variant-numeric: tabular-nums;
  z-index: 1;
}

.login-version {
  font-family: 'Geist Mono', ui-monospace, monospace;
  padding: 2px 6px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-sm);
}

.login-locale {
  margin-left: auto;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ── Sağ panel ─────────────────────────── */
.login-right {
  position: relative;
  flex: 1 1 50%;
  min-width: 0;
  background: var(--ds-background-200);
  display: flex;
  flex-direction: column;
  padding: 40px 32px 24px;
}

.login-mobile-brand {
  display: none;
}

.login-form-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.login-form-wrap form {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-form-wrap h1 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  color: var(--fg);
}

.login-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--fg-subtle);
}

.login-foot-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.login-foot a {
  color: var(--fg-subtle);
  transition: color var(--dur-fast) var(--ease);
}

.login-foot a:hover {
  color: var(--fg);
}

.login-foot-locale {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.08em;
}

.login-foot-locale a.is-active {
  color: var(--fg);
  font-weight: 500;
}

.login-foot-sep {
  color: var(--fg-subtle);
}

/* ═══════════════════════════════════════════════════
   Form
   ═══════════════════════════════════════════════════ */

.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Google butonu — beyaz, border'lı */
.login-btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 40px;
  padding: 0 14px;
  background: var(--ds-background-200);
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.login-btn-google:hover {
  background: var(--ds-gray-100);
}

.login-btn-google:focus-visible {
  outline: none;
  box-shadow: var(--ring-focus);
  border-color: var(--ring);
}

.login-btn-google svg {
  flex-shrink: 0;
}

/* Divider */
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--fg-subtle);
  margin: 4px 0;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.login-divider span {
  flex: 0;
  white-space: nowrap;
}

/* Şifre input wrap (göster/gizle butonu için) */
.login-pass-wrap {
  position: relative;
}

.login-pass-wrap .ctrl {
  padding-right: 38px;
}

.login-pass-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--fg-subtle);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.login-pass-toggle:hover {
  color: var(--fg);
  background: var(--ds-gray-100);
}

.login-pass-toggle:focus-visible {
  outline: none;
  box-shadow: var(--ring-focus);
}

.login-pass-toggle svg {
  width: 16px;
  height: 16px;
}

/* Mini link — "tek seferlik kod kullan", "şifremi unuttum" */
.login-mini-link {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-muted);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease);
}

.login-mini-link:hover {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.login-mini-link:focus-visible {
  outline: none;
  text-decoration: underline;
  text-underline-offset: 2px;
  color: var(--fg);
}

/* Beni hatırla + şifremi unuttum satırı */
.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px 0;
}

/* Custom checkbox — native değil */
.login-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--fg);
  user-select: none;
}

.login-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.login-check-box {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--ds-background-200);
  color: transparent;
  transition: all var(--dur-fast) var(--ease);
}

.login-check-box svg {
  width: 11px;
  height: 11px;
  stroke-width: 3;
}

.login-check input:checked ~ .login-check-box {
  background: var(--ds-gray-1000);
  border-color: var(--ds-gray-1000);
  color: #fff;
}

.login-check input:focus-visible ~ .login-check-box {
  box-shadow: var(--ring-focus);
}

/* Submit butonu — Geist .btn-primary kullanılıyor, sadece full-width */
.login-submit {
  width: 100%;
  margin-top: 2px;
}

/* Kurumsal SSO linki — submit altında */
.login-sso-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: transparent;
  border: none;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease), gap var(--dur-fast) var(--ease);
}

.login-sso-link:hover {
  color: var(--fg);
  gap: 6px;
}

.login-sso-link svg {
  width: 14px;
  height: 14px;
}

/* Hata mesajı — alert banner */
.login-error {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--danger);
  background: var(--danger-bg);
  border-radius: var(--r);
  color: var(--danger);
  font-size: 13px;
  text-align: left;
}
.login-error[hidden] { display: none; }
.login-error svg { width: 16px; height: 16px; flex-shrink: 0; }

/* KVKK micro-copy */
.login-legal {
  max-width: 360px;
  margin: 24px auto 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--fg-subtle);
  text-align: center;
}

.login-legal a {
  color: var(--fg-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--border-strong);
  transition: color var(--dur-fast) var(--ease);
}

.login-legal a:hover {
  color: var(--fg);
}

/* ── OTP grid ──────────────────────────── */
.login-otp-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.login-otp-cell {
  height: 48px;
  padding: 0;
  text-align: center;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
}

.login-otp-cell::-webkit-outer-spin-button,
.login-otp-cell::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.login-otp-hint {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--fg-subtle);
  text-align: center;
}

@media (max-width: 768px) {
  .login-otp-cell {
    height: 44px;
    font-size: 16px;
  }
}

/* ── Autofill normalize ────────────────── */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--ds-background-200) inset !important;
  -webkit-text-fill-color: var(--fg) !important;
  caret-color: var(--fg);
  transition: background-color 9999s ease-in-out 0s;
}

/* ── Mobile ────────────────────────────── */
@media (max-width: 768px) {
  .login-split {
    flex-direction: column;
  }

  .login-left {
    display: none;
  }

  .login-mobile-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: var(--ds-gray-1000);
    color: #fff;
  }

  .login-right {
    padding: 24px 20px 16px;
  }
}

/* ═══════════════════════════════════════════════════
   Submit sekansı
   ═══════════════════════════════════════════════════ */

/* Submit butonunun içerik morph'u — genişlik sabit */
.login-submit {
  position: relative;
  min-width: 0;
}

.login-submit[data-state] .login-submit-label {
  visibility: hidden;
}

.login-submit[data-state]::before {
  content: attr(data-state-text);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
}

.login-submit[data-state="loading"]::after {
  content: '';
  position: absolute;
  left: calc(50% - 60px);
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: login-spin 700ms linear infinite;
}

.login-submit[data-state="success"] {
  background: var(--success);
  border-color: var(--success);
}

.login-submit[data-state="success"]::after {
  content: '✓';
  position: absolute;
  left: calc(50% - 60px);
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

@keyframes login-spin {
  to { transform: rotate(360deg); }
}

/* Success overlay — tüm ekran siyah */
.login-success-overlay {
  position: fixed;
  inset: 0;
  background: var(--ds-gray-1000);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: login-fade-in 300ms var(--ease) both;
}

.login-success-overlay[hidden] {
  display: none;
}

.login-success-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.login-success-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255,255,255,0.15);
  border-top-color: rgba(255,255,255,0.7);
  border-radius: 50%;
  animation: login-spin 800ms linear infinite;
}

.login-form-fading form,
.login-form-fading .login-legal {
  opacity: 0;
  transition: opacity 300ms var(--ease);
  pointer-events: none;
}

@keyframes login-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Hata animasyonu ───────────────────── */
@keyframes login-shake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-6px); }
  75%      { transform: translateX(6px); }
}

.login-shake form {
  animation: login-shake 150ms ease-in-out 2;
}

.ctrl.is-error {
  border-color: var(--danger);
}

.login-otp-cell.is-error {
  border-color: var(--danger);
}

.login-error {
  animation: login-fade-in 200ms var(--ease) both;
}

.login-submit[data-state="locked"] {
  opacity: 1;
  background: var(--ds-gray-300);
  border-color: var(--ds-gray-300);
  color: var(--fg-muted);
  cursor: not-allowed;
}

.login-submit[data-state="locked"]::after {
  display: none;
}

.login-submit[data-state="locked"]::before {
  font-size: 13px;
}

/* ═══════════════════════════════════════════════════
   Modal
   ═══════════════════════════════════════════════════ */

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.login-modal[hidden] {
  display: none;
}

.login-cookie[hidden] {
  display: none;
}

.login-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  animation: login-fade-in 200ms var(--ease) both;
}

.login-modal-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--ds-background-200);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 28px 24px 20px;
  animation: login-modal-in 200ms var(--ease) both;
}

@keyframes login-modal-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.login-modal-card h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.login-modal-card p {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
}

.login-modal-card form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-modal-close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--r-sm);
  color: var(--fg-subtle);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.login-modal-close:hover {
  background: var(--ds-gray-100);
  color: var(--fg);
}

.login-modal-close svg {
  width: 16px;
  height: 16px;
}

.login-modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════════
   Toast
   ═══════════════════════════════════════════════════ */

.login-toast-region {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  pointer-events: none;
}

.login-toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 360px;
  padding: 12px 14px;
  background: var(--ds-background-200);
  border: 1px solid var(--border);
  border-left: 3px solid var(--fg);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  font-size: 13px;
  color: var(--fg);
  animation: login-toast-in 200ms var(--ease) both;
}

.login-toast.is-success {
  border-left-color: var(--success);
}
.login-toast.is-warning {
  border-left-color: var(--warning);
}
.login-toast.is-danger {
  border-left-color: var(--danger);
}

.login-toast.is-leaving {
  animation: login-toast-out 200ms var(--ease) both;
}

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

/* Google butonu loading */
.login-btn-google[data-loading] {
  pointer-events: none;
  color: var(--fg-subtle);
}

.login-btn-google[data-loading] svg {
  display: none;
}

.login-btn-google[data-loading]::before {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--fg);
  border-radius: 50%;
  animation: login-spin 700ms linear infinite;
}

/* ═══════════════════════════════════════════════════
   Açılış sekansı (intro)
   ═══════════════════════════════════════════════════ */

.login-intro {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--ds-gray-1000);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 400ms var(--ease);
}

.login-intro.is-fading {
  opacity: 0;
  pointer-events: none;
}

.login-intro-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  opacity: 0;
  animation: login-intro-in 180ms var(--ease) both;
}

@keyframes login-intro-in {
  to { opacity: 1; }
}

.login-intro-wordmark {
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
}

.login-intro-progress {
  width: 160px;
  height: 1px;
  background: rgba(255,255,255,0.12);
  overflow: hidden;
}

.login-intro-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.85);
  transform: translateX(-100%);
  animation: login-progress 500ms cubic-bezier(.45,.05,.55,.95) 180ms both;
}

@keyframes login-progress {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}

.login-intro-status {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.45);
  font-feature-settings: 'tnum' 1;
}

/* Boot sırasında panel'ler sadece opacity 0 — translate yok, layout shift yok */
body.is-booting .login-right {
  opacity: 0;
}

body.is-booting .login-left {
  opacity: 0;
}

body.is-revealing .login-left {
  opacity: 1;
  transition: opacity 280ms var(--ease);
}

body.is-revealing .login-right {
  opacity: 1;
  transition: opacity 280ms var(--ease);
}

/* Stagger — opacity-only, scrollbar/layout shift yaratmaz */
body.is-revealing .login-right > * > * {
  opacity: 0;
  animation: login-stagger-in 140ms var(--ease) forwards;
}

@keyframes login-stagger-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

body.is-revealing .login-right .login-form-wrap > form > *:nth-child(1) { animation-delay: 220ms; }
body.is-revealing .login-right .login-form-wrap > form > *:nth-child(2) { animation-delay: 250ms; }
body.is-revealing .login-right .login-form-wrap > form > *:nth-child(3) { animation-delay: 280ms; }
body.is-revealing .login-right .login-form-wrap > form > *:nth-child(4) { animation-delay: 310ms; }
body.is-revealing .login-right .login-form-wrap > form > *:nth-child(5) { animation-delay: 340ms; }
body.is-revealing .login-right .login-form-wrap > form > *:nth-child(6) { animation-delay: 370ms; }
body.is-revealing .login-right .login-form-wrap > form > *:nth-child(7) { animation-delay: 400ms; }
body.is-revealing .login-right .login-form-wrap > form > *:nth-child(8) { animation-delay: 430ms; }
body.is-revealing .login-right .login-form-wrap > form > *:nth-child(9) { animation-delay: 460ms; }
body.is-revealing .login-right .login-form-wrap > .login-legal { animation-delay: 490ms; }
body.is-revealing .login-right .login-foot { animation-delay: 520ms; }

/* ═══════════════════════════════════════════════════
   Cookie banner
   ═══════════════════════════════════════════════════ */

.login-cookie {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1500;
  width: 360px;
  max-width: calc(100vw - 40px);
}

.login-cookie-card {
  background: var(--ds-background-200);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 16px 16px 12px;
  animation: login-cookie-in 280ms var(--ease) both;
}

@keyframes login-cookie-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.login-cookie.is-leaving .login-cookie-card {
  animation: login-cookie-out 220ms var(--ease) both;
}

@keyframes login-cookie-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(20px); }
}

.login-cookie-head {
  margin-bottom: 6px;
}

.login-cookie-head strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}

.login-cookie p {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--fg-muted);
}

.login-cookie-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .login-cookie {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: none;
  }

  .login-cookie-card {
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.10);
  }
}

/* ── Reduced motion ────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .pipeline-station-ring,
  .pipeline-station-core,
  .pipeline-labels text {
    animation: none !important;
    opacity: 1 !important;
  }
  .pipeline-path {
    animation: none !important;
    stroke-dashoffset: 0 !important;
  }
  .pipeline-tokens { display: none; }

  .login-shake form { animation: none !important; }

  .login-intro,
  body.is-revealing .login-right > * > *,
  body.is-revealing .login-legal,
  body.is-revealing .login-foot {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
