/* ── Reset & base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

[x-cloak] { display: none !important; }

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 48%, #d1fae5 100%);
  font-family: 'Nunito', sans-serif;
  position: relative;
  overflow-x: hidden;
}

/* ── SVG dalgalar ────────────────────────────────────────────── */
.wave-top, .wave-bottom {
  position: fixed;
  left: 0; right: 0;
  width: 100%;
  pointer-events: none;
  z-index: 0;
}
.wave-top    { top: 0; }
.wave-bottom { bottom: 0; }

/* ── Kart ────────────────────────────────────────────────────── */
.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: rgba(255,255,255,0.95);
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(27,79,154,0.18), 0 4px 16px rgba(27,79,154,0.08);
  border: 1px solid rgba(255,255,255,0.9);
  padding: 44px 40px 36px;
  margin: 16px;
}

/* ── Marka ───────────────────────────────────────────────────── */
.brand-logo {
  height: 64px;
  width: auto;
  display: block;
  margin: 0 auto 12px;
}
.brand-logo-fallback {
  font-size: 1.5rem;
  font-weight: 900;
  color: #1B4F9A;
  margin-bottom: 8px;
}
.brand-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1B4F9A;
  margin-bottom: 4px;
}
.year-badge {
  display: inline-block;
  background: rgba(27,79,154,0.08);
  color: #1B4F9A;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 99px;
  margin-bottom: 24px;
}

/* ── Hata kutusu ─────────────────────────────────────────────── */
.hata-kutu {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  color: #991b1b;
  padding: 12px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 16px;
}

/* ── Basari kutusu ───────────────────────────────────────────── */
.basari-kutu {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  color: #166534;
  padding: 12px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 16px;
}

/* ── Input wrapper ───────────────────────────────────────────── */
.input-wrapper {
  position: relative;
  margin-bottom: 12px;
}

/* ── Text input'lar ──────────────────────────────────────────── */
.giris-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #bae6fd;
  border-radius: 14px;
  background: #f0f9ff;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.giris-input::placeholder { color: #94a3b8; font-weight: 400; }
.giris-input:focus {
  border-color: #1B4F9A;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(27,79,154,0.10);
}
.giris-input.dolu {
  border-color: #1B4F9A;
  background: #fff;
}
.giris-input.tc-ok { padding-right: 56px; }
.giris-input:disabled { opacity: 0.55; cursor: not-allowed; }

/* ── TC rozeti ───────────────────────────────────────────────── */
.tc-badge {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: #d1fae5;
  color: #065f46;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 99px;
  pointer-events: none;
}

/* ── Hint pill'lar ───────────────────────────────────────────── */
.hint-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.hint-pill {
  flex: 1;
  text-align: center;
  font-size: 0.73rem;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 99px;
  padding: 5px 8px;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}

/* ── Rol toggle ──────────────────────────────────────────────── */
.rol-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.rol-btn {
  flex: 1;
  padding: 11px 8px;
  border-radius: 14px;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  font-family: 'Nunito', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.rol-btn.aktif {
  border-color: #1B4F9A;
  background: rgba(27,79,154,0.08);
  color: #1B4F9A;
}
.rol-btn:hover:not(.aktif):not(:disabled) {
  border-color: #93c5fd;
  background: #f0f9ff;
}
.rol-btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ── Slide-in geçiş sınıfları (Alpine x-transition ile) ─────── */
.fade-slide-enter       { transition: opacity 0.2s ease-out, transform 0.2s ease-out; }
.fade-slide-enter-start { opacity: 0; transform: translateY(-8px); }
.fade-slide-enter-end   { opacity: 1; transform: translateY(0); }
.fade-slide-leave       { transition: opacity 0.15s ease-in, transform 0.15s ease-in; }
.fade-slide-leave-start { opacity: 1; transform: translateY(0); }
.fade-slide-leave-end   { opacity: 0; transform: translateY(-8px); }

/* ── Submit butonu ───────────────────────────────────────────── */
.btn-giris {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(90deg, #1B4F9A, #2563eb);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(27,79,154,0.30);
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  margin-top: 20px;
  letter-spacing: 0.01em;
}
.btn-giris:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(27,79,154,0.40);
}
.btn-giris:active:not(:disabled) { transform: translateY(0); }
.btn-giris:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
.rol-btn:focus-visible {
  outline: 2px solid #1B4F9A;
  outline-offset: 2px;
}
.btn-giris:focus-visible {
  outline: 2px solid rgba(255,255,255,0.8);
  outline-offset: 2px;
}

/* ── Footer ──────────────────────────────────────────────────── */
.giris-footer {
  text-align: center;
  margin-top: 28px;
  font-size: 0.75rem;
  color: #94a3b8;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  .login-card   { padding: 28px 20px 24px; border-radius: 20px; }
  .brand-title  { font-size: 1.2rem; }
  .hint-pill    { font-size: 0.68rem; }
}

/* ── Erişilebilirlik ─────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}