/* bitiglab Giriş — landing ile aynı sade kimlik */
.auth-page {
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.6rem;
}

.auth-page-frame {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Giriş sayfası input/placeholder: koyu arka planda okunabilir metin */
.view-giris .input {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.45);
}
.view-giris .input::placeholder {
  color: var(--text-secondary);
  opacity: 1;
}

.auth-container {
  width: min(380px, 94vw);
  background: var(--surface);
  border: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), var(--shadow-soft);
  border-radius: var(--radius-sm);
  padding: 2rem 1.75rem;
  position: relative;
}

@keyframes authSlideUp {
  from { opacity: 0; }
  to { opacity: 1; }
}

.auth-tabs {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
  justify-content: center;
}

.auth-tab {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  position: relative;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: inherit;
}

.auth-tab:hover {
  color: var(--text-primary);
}

.auth-tab:not(.active) {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.auth-tab.active {
  color: var(--black);
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.25);
}

.auth-form {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-form.active {
  display: flex;
}

/* Giriş/kayıt formu gönder butonu — ana CTA ile aynı vurgu (marka tutarlılığı) */
.auth-container .btn {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--accent);
  color: var(--black);
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.3);
  cursor: pointer;
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.auth-container .btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 0 1px var(--accent);
}

.auth-error {
  color: var(--error);
  font-size: 0.78rem;
  text-align: center;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
  min-height: 1rem;
  font-weight: 600;
}

.auth-loading {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 6, 9, 0.88);
  backdrop-filter: blur(8px);
  color: var(--accent);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.auth-loading.show {
  display: flex;
}

.demo-note {
  position: absolute;
  bottom: 24px;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  z-index: 10;
  pointer-events: none;
}

.demo-note-left {
  left: 24px;
}

.demo-note-right {
  right: 24px;
  text-align: right;
  max-width: 300px;
}

@media (hover: hover) {
  .auth-container:hover {
    border-color: rgba(255, 255, 255, 0.14);
  }
}

@media (max-width: 480px) {
  .auth-container {
    padding: 2rem 1.5rem;
    border-radius: var(--radius-md);
  }

  .demo-note {
    display: none;
  }
}

/* E-posta doğrulama geçidi (giriş gibi tam ekran; doğrulanmadan anasayfaya geçilmez) */
.view-verify {
  align-items: center;
  justify-content: center;
  min-height: 100%;
  background: var(--bg);
}
.verify-gate {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.verify-card {
  width: min(400px, 94vw);
  background: var(--surface);
  border: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), var(--shadow-soft);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  text-align: center;
}
.verify-icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  background: var(--primary-glow);
  border: none;
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.2);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.verify-icon {
  font-size: 2rem;
  color: var(--accent);
}
.verify-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.verify-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0 0 1.5rem;
}
.verify-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.verify-code-input {
  text-align: center;
  font-size: 1.75rem;
  letter-spacing: 0.5rem;
  font-weight: 700;
}
.verify-error {
  color: var(--error);
  font-size: 0.85rem;
  font-weight: 600;
  min-height: 1.2rem;
}
.verify-error:not(.hidden) {
  background: rgba(239, 68, 68, 0.1);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}
.verify-btn { margin-top: 0.25rem; }
.verify-resend {
  background: transparent;
  border: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}
.verify-resend:hover { box-shadow: 0 0 0 1px var(--accent); color: var(--accent); }
.verify-logout {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}
.verify-logout:hover { color: var(--accent); }

/* Landing (tek kaynak: sadece SPA; variables.css token’ları kullanır) */
.view-landing {
  min-height: 100%;
  background: var(--bg);
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
}
.landing-frame {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  width: 100%;
}
.landing-brand {
  position: absolute;
  top: 0.7rem;
  left: 0.9rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}
.landing-main {
  width: min(620px, 100%);
  text-align: center;
  padding: 0.6rem;
}
.landing-headline {
  margin: 0 0 0.9rem;
  font-size: clamp(0.88rem, 1.6vw, 1.1rem);
  line-height: 1.35;
  font-weight: 400;
  color: var(--text-primary);
}
.landing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  color: var(--black);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.1rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  border: 1px solid transparent;
}
.landing-cta:hover {
  background: var(--accent-hover);
  color: var(--black);
}
@media (max-width: 640px) {
  .landing-headline { font-size: 0.82rem; }
  .landing-cta { width: 100%; }
}