:root {
  --bg: #060a12;
  --panel: #0a101c;
  --line: rgba(255, 255, 255, 0.08);
  --text: #eef3ff;
  --muted: #8fa3c4;
  --gold: #d4af6a;
  --gold-btn: linear-gradient(180deg, #ecd088 0%, #c9a050 100%);
  --blue: #3b82f6;
  --err: #ff6b7a;
  --ok: #34d399;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  font-family: "Outfit", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

.login-body {
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
}

.nw-login {
  position: relative;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 420px);
}

.nw-login-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% 20%, rgba(59, 130, 246, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(212, 175, 106, 0.08), transparent 45%),
    var(--bg);
  pointer-events: none;
}

.nw-login-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Sol: metin (sahte menü yok) ── */
.nw-intro {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  padding: clamp(24px, 4vw, 56px) clamp(28px, 5vw, 64px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.intro-inner {
  max-width: 520px;
  animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.intro-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.intro-brand-logo img {
  display: block;
  width: min(320px, 100%);
  height: auto;
  max-height: 88px;
  object-fit: contain;
  object-position: left center;
  background: transparent;
  mix-blend-mode: normal;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.4));
}

.logo-n {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  color: #f0cc84;
  background: linear-gradient(145deg, #4f8ff7, #1e40af);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.35);
}

.intro-eyebrow {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.intro-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.intro-title {
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}

.intro-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 28px;
}

.intro-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.intro-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: rgba(238, 243, 255, 0.88);
}

.intro-list .dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(212, 175, 106, 0.5);
}

/* ── Sağ: form kolonu (boşlukta yüzen kutu değil) ── */
.nw-auth {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 28px;
  background: var(--panel);
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 80px rgba(0, 0, 0, 0.35);
}

.auth-panel {
  width: 100%;
  max-width: 340px;
  animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

.auth-panel h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.tab-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 28px;
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
}

.tab-btn {
  position: relative;
  z-index: 1;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}

.tab-btn.is-on { color: #fff; }

.tab-glider {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 0;
  height: 40px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.35);
  border: 1px solid rgba(96, 165, 250, 0.35);
  transition: transform 0.35s cubic-bezier(0.34, 1.1, 0.64, 1), width 0.35s cubic-bezier(0.34, 1.1, 0.64, 1);
  pointer-events: none;
}

.tab-panel { display: none; }
.tab-panel.is-on {
  display: block;
  animation: panelIn 0.25s ease-out;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-panel h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.auth-hint {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.field {
  display: block;
  margin-bottom: 18px;
}

.field > span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(238, 243, 255, 0.75);
}

.field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input::placeholder { color: rgba(143, 163, 196, 0.5); }

.field input:focus {
  outline: none;
  border-color: rgba(212, 175, 106, 0.4);
  box-shadow: 0 0 0 3px rgba(212, 175, 106, 0.1);
}

.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 72px; }

.pass-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 8px;
  cursor: pointer;
}

.pass-toggle:hover { color: var(--text); }

.msg {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.msg-error {
  background: rgba(255, 80, 100, 0.08);
  border: 1px solid rgba(255, 107, 122, 0.28);
  color: var(--err);
}

.msg-ok {
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.28);
  color: var(--ok);
}

.btn-gold {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  margin-top: 8px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a1208;
  background: var(--gold-btn);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25), 0 12px 28px rgba(212, 175, 106, 0.2);
  transition: filter 0.2s, transform 0.12s;
}

.btn-gold:hover:not(:disabled) { filter: brightness(1.05); }
.btn-gold:active:not(:disabled) { transform: translateY(1px); }
.btn-gold:disabled { opacity: 0.7; cursor: wait; }

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(26, 18, 8, 0.2);
  border-top-color: #1a1208;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

@media (max-width: 880px) {
  .nw-login {
    grid-template-columns: 1fr;
  }
  .nw-intro {
    padding: 40px 24px 24px;
    align-items: flex-start;
  }
  .intro-title br { display: none; }
  .intro-list { display: none; }
  .nw-auth {
    border-left: none;
    border-top: 1px solid var(--line);
    box-shadow: none;
    padding: 28px 24px 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-inner, .auth-panel { animation: none; }
  .tab-panel.is-on { animation: none; }
  .spinner { animation-duration: 0.01ms; }
}
