/* ========== Giriş sayfası – modern, davetkar, profesyonel ========== */
.auth-layout {
  min-height: 100vh;
  font-family: var(--font-family);
}

/* Tema ve dil seçenekleri – giriş sayfası sağ üst köşe */
.auth-options-bar {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.auth-options-btn {
  border-radius: 0.75rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: #0b2a46;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.auth-options-btn:hover,
.auth-options-btn:focus,
.auth-options-btn.show {
  background: #fff;
  border-color: rgba(17, 24, 39, 0.2);
  color: #0b2a46;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
@media (min-width: 992px) {
  .auth-options-bar {
    top: 1.5rem;
    right: 1.5rem;
  }
}
/* Koyu modda auth options – form paneli koyu olunca */
html.theme-dark .auth-options-btn {
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(30, 41, 59, 0.8);
  color: #f1f5f9;
}
html.theme-dark .auth-options-btn:hover,
html.theme-dark .auth-options-btn:focus,
html.theme-dark .auth-options-btn.show {
  background: rgba(51, 65, 85, 0.9);
  border-color: rgba(148, 163, 184, 0.5);
  color: #f1f5f9;
}

.auth-page {
  min-height: 100vh;
  display: flex;
}

/* ----- Split layout: sol hero, sağ form ----- */
.auth-split {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
}

@media (min-width: 992px) {
  .auth-split {
    flex-direction: row;
  }
}

/* ----- Sol panel: Hoş geldiniz / Hero ----- */
.auth-hero {
  flex: 0 0 auto;
  padding: 2rem 1.5rem 2.5rem;
  background: linear-gradient(145deg, #0b2a46 0%, #1a3a5c 45%, #0f3552 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

@media (min-width: 992px) {
  .auth-hero {
    flex: 1 1 50%;
    padding: 3rem 3.5rem 3rem;
    display: flex;
    align-items: center;
  }
}

.auth-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .auth-hero-inner {
    margin: 0;
    max-width: 380px;
  }
}

/* Hero logo – sol panel, koyu mavi zemin üzerinde vurgulu kutu */
.auth-hero-logo-block {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #fff;
  margin-bottom: 2rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.auth-hero-logo-block:hover {
  color: rgba(255, 255, 255, 0.95);
  opacity: 0.95;
}

.auth-hero-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 140px;
  padding: 0.5rem 0.75rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
}
.auth-hero-logo-box .auth-hero-logo-img {
  width: 100%;
  height: auto;
  max-height: 38px;
  object-fit: contain;
  display: block;
}

.auth-hero-logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.auth-hero-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.auth-hero-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.75rem;
}

.auth-hero-features {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.9);
}

.auth-hero-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
}

.auth-hero-features li i {
  color: #a6d3fa;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Dekoratif arka plan şekilleri */
.auth-hero-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.auth-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.2;
}

.auth-blob-1 {
  width: 280px;
  height: 280px;
  background: #a6d3fa;
  top: -80px;
  right: -60px;
}

.auth-blob-2 {
  width: 200px;
  height: 200px;
  background: rgba(166, 211, 250, 0.5);
  bottom: 20%;
  left: -40px;
}

.auth-blob-3 {
  width: 140px;
  height: 140px;
  background: rgba(255, 255, 255, 0.15);
  bottom: -30px;
  right: 20%;
}

/* ----- Sağ panel: Form ----- */
.auth-form-wrap {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 2rem;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

@media (min-width: 992px) {
  .auth-form-wrap {
    flex: 0 0 50%;
    padding: 2rem 3rem;
    background: #f8fafc;
  }
}

.auth-form-container {
  width: 100%;
  max-width: 420px;
}

/* Form üstü logo – hem mobil hem masaüstü, kartın üzerinde */
.auth-form-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.auth-form-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--foreground);
  transition: opacity 0.2s ease;
}
.auth-form-logo:hover {
  color: var(--foreground);
  opacity: 0.9;
}

.auth-form-logo-img {
  height: 36px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
}

.auth-form-logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .auth-form-logo-img {
    height: 40px;
    max-width: 140px;
  }
  .auth-form-logo-text {
    font-size: 1.15rem;
  }
}

/* Kart */
.auth-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.auth-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.5rem;
  background: var(--neutral-10);
  border-radius: 14px;
  margin: 1.25rem 1.25rem 0;
  border: none;
}

.auth-tabs .auth-tab {
  border: none;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted-foreground);
  background: transparent;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.auth-tabs .auth-tab:hover {
  color: var(--foreground);
}

.auth-tabs .auth-tab.active {
  background: #fff;
  color: var(--foreground);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.auth-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.auth-form .form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.35rem;
}

.auth-field {
  margin-bottom: 1rem;
}

.auth-field-row {
  margin-bottom: 0.5rem;
}

.auth-input-wrap {
  position: relative;
}

.auth-input-wrap .auth-input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: var(--muted-foreground);
  pointer-events: none;
}

.auth-input-wrap .form-control {
  padding-left: 2.75rem;
  border-radius: 12px;
  border: 1px solid var(--input-border);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input-wrap .form-control:hover {
  border-color: var(--input-border-hover);
}

.auth-input-wrap .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(166, 211, 250, 0.3);
  outline: none;
}

.auth-link {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-decoration: none;
}

.auth-link:hover {
  color: var(--foreground);
}

.auth-btn-primary {
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #0b2a46 0%, #1a3a5c 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(11, 42, 70, 0.35);
  transition: transform 0.15s, box-shadow 0.2s;
}

.auth-btn-primary:hover {
  background: linear-gradient(135deg, #1a3a5c 0%, #0b2a46 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(11, 42, 70, 0.4);
  transform: translateY(-1px);
}

.auth-btn-primary:active {
  transform: translateY(0);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

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

.auth-social {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auth-btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--foreground);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.auth-btn-social:hover {
  background: var(--neutral-5);
  border-color: var(--border-strong);
  color: var(--foreground);
}

.auth-alert {
  border-radius: 12px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.auth-hint {
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}

.auth-check {
  margin-bottom: 1rem;
}

.auth-check .form-check-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.auth-check a {
  color: var(--foreground);
  text-decoration: none;
}

.auth-check a:hover {
  text-decoration: underline;
}

.auth-switch-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.auth-switch-text .btn-link {
  color: #0b2a46;
  text-decoration: none;
  font-weight: 600;
}

html.theme-dark .auth-switch-text .btn-link {
  color: var(--primary);
}

.auth-switch-text .btn-link:hover {
  text-decoration: underline;
}

.auth-footer {
  margin-top: 1.75rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.auth-footer a {
  color: var(--muted-foreground);
  text-decoration: none;
}

.auth-footer a:hover {
  color: var(--foreground);
}

.auth-footer-dot {
  margin: 0 0.35rem;
}

/* ----- Koyu tema – okunurluk ve kontrast ----- */
html.theme-dark .auth-form-wrap {
  background: #0f172a;
}

html.theme-dark .auth-form-logo,
html.theme-dark .auth-form-logo:hover,
html.theme-dark .auth-form-logo-text {
  color: #f1f5f9;
}

html.theme-dark .auth-card {
  background: #1e293b;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

/* Sekmeler: pasif açık gri, aktif vurgulu */
html.theme-dark .auth-tabs {
  background: rgba(255, 255, 255, 0.06);
}

html.theme-dark .auth-tabs .auth-tab {
  color: #94a3b8;
}

html.theme-dark .auth-tabs .auth-tab:hover {
  color: #f1f5f9;
}

html.theme-dark .auth-tabs .auth-tab.active {
  background: #334155;
  color: #f1f5f9;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Form etiketleri ve ikonlar – okunaklı */
html.theme-dark .auth-card-body .form-label {
  color: #e2e8f0 !important;
}

html.theme-dark .auth-input-wrap .auth-input-icon {
  color: #94a3b8 !important;
}

/* Input alanları – koyu zemin, açık metin */
html.theme-dark .auth-input-wrap .form-control {
  background: #334155 !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
  color: #f1f5f9 !important;
}

html.theme-dark .auth-input-wrap .form-control::placeholder {
  color: #64748b !important;
}

html.theme-dark .auth-input-wrap .form-control:focus {
  border-color: #7dd3fc;
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.2);
}

/* Şifremi unuttum / doğrulama tekrar gönder linkleri */
html.theme-dark .auth-link {
  color: #94a3b8 !important;
}

html.theme-dark .auth-link:hover {
  color: #7dd3fc !important;
}

/* "veya" ayırıcı */
html.theme-dark .auth-divider {
  color: #94a3b8 !important;
}

html.theme-dark .auth-divider::before,
html.theme-dark .auth-divider::after {
  background: rgba(148, 163, 184, 0.2);
}

/* Sosyal giriş butonları */
html.theme-dark .auth-btn-social {
  background: #334155 !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
  color: #f1f5f9 !important;
}

html.theme-dark .auth-btn-social:hover {
  background: #475569 !important;
  border-color: rgba(148, 163, 184, 0.3) !important;
  color: #f1f5f9 !important;
}

/* Şifre ipucu, kullanım şartları metni */
html.theme-dark .auth-hint {
  color: #94a3b8 !important;
}

/* Kullanım şartları / gizlilik – tüm metin ve linkler okunaklı */
html.theme-dark .auth-check .form-check-label {
  color: #e2e8f0 !important;
}

html.theme-dark .auth-check .form-check-label a {
  color: #7dd3fc !important;
  text-decoration: none;
}

html.theme-dark .auth-check .form-check-label a:hover {
  color: #bae6fd !important;
  text-decoration: underline;
}

/* "Zaten hesabınız var mı? Giriş yapın" */
html.theme-dark .auth-switch-text {
  color: #94a3b8 !important;
}

html.theme-dark .auth-switch-text .btn-link {
  color: #7dd3fc !important;
}

/* Footer linkleri – okunaklı */
html.theme-dark .auth-footer {
  color: #94a3b8 !important;
}

html.theme-dark .auth-footer a {
  color: #94a3b8 !important;
}

html.theme-dark .auth-footer a:hover {
  color: #7dd3fc !important;
}

/* Alert koyu modda */
html.theme-dark .auth-alert.alert-success {
  background: rgba(74, 222, 128, 0.15);
  border-color: rgba(74, 222, 128, 0.3);
  color: #bbf7d0;
}

html.theme-dark .auth-alert.alert-danger {
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.3);
  color: #fecaca;
}

/* Resend / forgot sayfalarında aynı form stilleri geçerli */
html.theme-dark .auth-resend-wrap .auth-link {
  color: #7dd3fc !important;
}

/* ----- Kullanım Şartları / Gizlilik / İletişim modal (auth sayfaları) ----- */
.legal-modal-content {
  border-radius: 16px;
  overflow: hidden;
}

.legal-modal-content .modal-header {
  background: var(--neutral-5);
  padding: 1rem 1.25rem;
}

.legal-modal-content .modal-title {
  font-weight: 600;
  font-size: 1.1rem;
}

html.theme-dark .legal-modal-content {
  background: var(--dm-surface-elevated);
  border-color: var(--dm-border);
}

html.theme-dark .legal-modal-content .modal-header {
  background: var(--dm-surface);
  border-color: var(--dm-border);
  color: var(--dm-text);
}

html.theme-dark .legal-modal-content .modal-body {
  background: var(--dm-surface-elevated);
  color: var(--dm-text);
}

html.theme-dark .legal-modal-body h2 {
  color: var(--dm-text);
}

html.theme-dark .legal-modal-body a {
  color: var(--dm-primary);
}

html.theme-dark .legal-modal-content .btn-close {
  filter: invert(1);
}
