/*
 * KIMLIK EKRANLARI.
 *
 * Giris, kayit, parola sifirlama, e-posta dogrulama ve iki adimli
 * dogrulama. Hepsi Layouts/Auth.Layout.ejs uzerinden ciziliyor ve bu
 * dosyayi YALNIZ o layout yukluyor.
 */

:root {
  --auth-bg-image: none;
}

.auth {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl) var(--spacing-md);
  background-color: var(--color-background);
  overflow-x: hidden;
}

/* Arka plan gorseli ve karartma katmani */
.auth--has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--auth-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transform: scale(1.02);
}

.auth--has-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 17, 32, 0.86) 0%, rgba(15, 23, 42, 0.75) 50%, rgba(11, 17, 32, 0.90) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1;
}

.auth__box {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
}

.auth--has-bg .card {
  background: var(--color-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.auth__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: var(--spacing-lg);
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.015em;
  text-decoration: none;
}
.auth__brand:hover { color: var(--color-text); }
.auth__brand-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.auth__title { font-size: var(--font-size-xl); text-align: center; margin-bottom: 6px; font-weight: 700; }
.auth__subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  margin-bottom: var(--spacing-lg);
}

.auth__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: var(--spacing-md) 0;
  font-size: var(--font-size-xs);
  color: var(--color-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.auth__divider::before, .auth__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

/* Sosyal Giris / OAuth Buton Gridi */
.auth__oauth-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (max-width: 480px) {
  .auth__oauth-grid {
    grid-template-columns: 1fr;
  }
}

.btn--oauth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: var(--font-size-sm);
  font-weight: 500;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn--oauth:hover {
  background: var(--color-row-hover);
  border-color: var(--border-color-strong);
  transform: translateY(-1px);
}
.btn--oauth img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
}

.btn--oauth-google:hover { border-color: #4285F4; }
.btn--oauth-apple:hover { border-color: var(--color-text); }
.btn--oauth-microsoft:hover { border-color: #00A4EF; }
.btn--oauth-edevlet:hover { border-color: #E30613; }

/* Kart altindaki "Hesabiniz yok mu?" satiri */
.auth__alt {
  margin-top: var(--spacing-md);
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* Tek haneli OTP girisi */
.otp-input {
  height: 48px;
  font-family: var(--font-family-mono);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 12px;
  text-indent: 12px;
  text-align: center;
}
.auth-methods { display: flex; flex-wrap: wrap; gap: var(--spacing-xs); margin-bottom: var(--spacing-md); }
