:root {
  --auth-bg-fallback:#f5f5f7;
  --auth-card-bg:rgba(255,255,255,0.7);
  --auth-card-border:rgba(255,255,255,0.5);
  --auth-card-shadow:0 30px 60px rgba(0,0,0,0.08),0 0 0 1px rgba(0,0,0,0.02);
  --auth-text:#1d1d1f;
  --auth-text-muted:#555555;
  --auth-input-bg:rgba(241,245,249,0.6);
  --auth-input-border:rgba(0,0,0,0.08);
  --auth-input-focus:#000000;
  --auth-btn-bg:#000;
  --auth-btn-text:#fff;
  --auth-accent:#1d1d1f;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    "Inter",
    "Helvetica Neue",
    Arial,
    sans-serif;
  background-color: var(--auth-bg-fallback);
  background-image:
    linear-gradient(
      to bottom,
      rgba(235, 235, 240, 0.8),
      rgba(245, 245, 247, 0.9)),
    url(/assets/img/dashboard-bg-light.webp);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--auth-text);
  transition: background-color 0.4s ease, color 0.4s ease;
  -webkit-font-smoothing: antialiased;
}
.site-header {
  position: relative;
  left: 0;
  width: 100%;
  padding: 16px 40px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  z-index: 2000;
  transition: all 0.35s ease;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

@media (hover: hover) {
.brand:hover {
  opacity: 1;
}
}

.brand-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--auth-text);
  margin-bottom: 2px;
}
.brand-tagline {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--auth-text-muted);
  text-transform: uppercase;
}
.auth-shell {
  width: 100%;
  max-width: 460px;
  padding: 24px;
  margin: auto;
  z-index: 10;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.auth-card {
  border-radius: 32px;
  background: var(--auth-card-bg);
  border: 1px solid var(--auth-card-border);
  box-shadow: var(--auth-card-shadow);
  padding: 48px 40px;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.auth-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.1),
      transparent,
      rgba(255, 255, 255, 0.05));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
}
.auth-card > * {
  position: relative;
  z-index: 1;
}
.auth-title {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  text-align: center;
  background:
    linear-gradient(
      135deg,
      var(--auth-text),
      var(--auth-text-muted));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.auth-subtitle {
  margin: 0 0 32px;
  font-size: 0.95rem;
  color: var(--auth-text-muted);
  text-align: center;
  line-height: 1.5;
}
.auth-field {
  margin-bottom: 20px;
}
.auth-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--auth-text);
}
.auth-input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--auth-input-border);
  background: var(--auth-input-bg);
  padding: 14px 16px;
  color: var(--auth-text);
  font-size: 1rem;
  outline: none;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.auth-input:focus {
  border-color: var(--auth-input-focus);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.9);
}
.auth-input::placeholder {
  color: var(--auth-text-muted);
  opacity: 0.6;
}
.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}
.auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 99px;
  border: none;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}
.auth-button-primary {
  background: var(--auth-btn-bg);
  color: var(--auth-btn-text);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (hover: hover) {
.auth-button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
}

.auth-button-secondary {
  background: transparent;
  color: var(--auth-text);
  border: 1px solid var(--auth-input-border);
}

@media (hover: hover) {
.auth-button-secondary:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: var(--auth-text-muted);
}
}

.auth-meta {
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--auth-text-muted);
  text-align: center;
  line-height: 1.5;
}
.auth-error {
  margin-bottom: 24px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #b91c1c;
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
  backdrop-filter: blur(10px);
}
.auth-success {
  margin-bottom: 24px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #047857;
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
  backdrop-filter: blur(10px);
}
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (max-width: 600px) {
  .auth-shell {
    padding: 16px;
  }
  .auth-card {
    padding: 32px 24px;
    border-radius: 24px;
  }
}

/* GİRİŞ VE KAYIT — uygulamayla eş akışın öğeleri (9 Kasım 2026)
 * Şifre göster/gizle, metin düğmeleri ("Şifremi Unuttum", "Doğrulama e-postasını yeniden gönder"), şifre kuralı satırı,
 * kayıt onayları. Marka moru #4a2fa8 yalnız metin düğmelerinde ve bağlantılarda. */
[hidden] {
  display: none !important;
}
.auth-sifre {
  position: relative;
}
.auth-sifre .auth-input {
  padding-right: 52px;
}
.auth-sifre-goster {
  position: absolute;
  top: 50%;
  right: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--auth-text-muted);
  cursor: pointer;
}
.auth-sifre-goster .goz-kapali,
.auth-sifre-goster.is-acik .goz-acik {
  display: none;
}
.auth-sifre-goster.is-acik .goz-kapali {
  display: block;
}
@media (hover: hover) {
  .auth-sifre-goster:hover {
    color: var(--auth-text);
  }
}
.auth-metin-dugme {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: #4a2fa8;
  text-align: inherit;
  cursor: pointer;
}
.auth-metin-dugme:disabled {
  color: var(--auth-text-muted);
  cursor: default;
}
@media (hover: hover) {
  .auth-metin-dugme:not(:disabled):hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}
.auth-sifre-goster:focus-visible,
.auth-metin-dugme:focus-visible,
.auth-button:focus-visible,
.auth-onay input:focus-visible,
.auth-onay a:focus-visible {
  outline: 2px solid #4a2fa8;
  outline-offset: 3px;
}
.auth-yardim {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: -4px;
}
.auth-yardim #sifremi-unuttum {
  margin-left: auto;
}
.auth-kural {
  margin: 8px 0 0;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.45;
  color: #b45309;
}
.auth-onaylar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 8px 0 24px;
}
.auth-onay {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--auth-text);
  cursor: pointer;
}
.auth-onay input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #1d1d1f;
  cursor: pointer;
}
.auth-onay a {
  color: #4a2fa8;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-girise-gec {
  display: block;
  margin: -12px auto 8px;
}
#kayit-basari .auth-success:focus {
  outline: none;
}
.auth-button:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}
