/* ==================== AUTH (Giriş / Kayıt) ==================== */

.auth-sayfa {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 24px;
  background: #fff;
}

.auth-kutu {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 12px;
  padding: 48px 40px 36px;
  box-shadow: none;
}

/* Başlık */
.auth-baslik-alan {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo {
  display: inline-block;
  margin-bottom: 16px;
}

.auth-logo img {
  border-radius: 10px;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.08));
}

.auth-baslik {
  font-size: 24px;
  font-weight: 400;
  color: #202124;
  margin: 0 0 8px;
  letter-spacing: -.2px;
}

.auth-aciklama {
  font-size: 15px;
  color: #5f6368;
  margin: 0;
  line-height: 1.5;
}

/* Mesajlar */
.auth-mesaj {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.auth-hata {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.auth-basari {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

/* Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-form-satir {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-form-grup {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.auth-form-grup label {
  font-size: 12px;
  font-weight: 500;
  color: #5f6368;
  letter-spacing: .01em;
}

.auth-label-satir {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auth-label-satir label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.auth-link-kucuk {
  font-size: 12px;
  color: #2563eb;
}

.auth-link-kucuk:hover {
  text-decoration: underline;
}

.auth-form-grup input,
.auth-form-grup select {
  padding: 13px 16px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  background: #fff;
  width: 100%;
  color: #202124;
}

.auth-form-grup input:focus,
.auth-form-grup select:focus {
  border-color: #1a73e8;
  box-shadow: 0 0 0 2px rgba(26, 115, 232, .15);
}

/* Alan bazlı hata */
.has-error input,
.has-error select {
  border-color: #dc2626 !important;
  background: #fef2f2 !important;
}

.has-error input:focus,
.has-error select:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .1) !important;
}

.auth-alan-hata {
  display: block;
  font-size: 12px;
  color: #dc2626;
  margin-top: 4px;
}

.auth-ipucu {
  font-size: 12px;
  color: #94a3b8;
}

/* Şifre göster */
.auth-sifre-wrap {
  position: relative;
}

.auth-sifre-wrap input {
  padding-right: 44px;
}

.auth-sifre-goster {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  opacity: .5;
  transition: opacity .2s;
}

.auth-sifre-goster:hover {
  opacity: 1;
}

/* Checkbox */
.auth-beni-hatirla,
.auth-onay {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #475569;
  cursor: pointer;
  line-height: 1.5;
}

.auth-beni-hatirla input,
.auth-onay input {
  margin-top: 2px;
  accent-color: #2563eb;
}

.auth-onay a {
  color: #2563eb;
  text-decoration: underline;
}

/* Sözleşme onay alanı */
.auth-sozlesme-alan {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

/* Buton */
.auth-btn {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  font-weight: 500;
  margin-top: 8px;
  border-radius: 8px;
  letter-spacing: .01em;
}

/* Alt link */
.auth-alt {
  text-align: center;
  margin-top: 32px;
  padding-top: 0;
  border-top: none;
  font-size: 14px;
  color: #5f6368;
}

.auth-alt a {
  color: #1a73e8;
  font-weight: 500;
}

.auth-alt a:hover {
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 640px) {
  .auth-sayfa {
    padding: 24px 16px;
  }

  .auth-kutu {
    padding: 32px 24px 28px;
  }

  .auth-form-satir {
    grid-template-columns: 1fr;
  }
}

/* ── Telefon Doğrulama ── */
.dogrulama-ikon {
  font-size: 48px;
  margin-bottom: 12px;
}

/* ── Telefon Input (OTP Giriş) ── */
.auth-telefon-wrap {
  display: flex;
  align-items: center;
  border: 1px solid #dadce0;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}

.auth-telefon-wrap:focus-within {
  border-color: #1a73e8;
  box-shadow: 0 0 0 2px rgba(26, 115, 232, .15);
}

.has-error .auth-telefon-wrap {
  border-color: #dc2626 !important;
  background: #fef2f2 !important;
}

.has-error .auth-telefon-wrap:focus-within {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .1) !important;
}

.auth-telefon-prefix {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  user-select: none;
  white-space: nowrap;
}

.bayrak-ikon {
  display: block;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,.1);
  border-radius: 2px;
}

.auth-telefon-wrap input {
  border: none !important;
  border-radius: 0 !important;
  padding: 11px 14px !important;
  flex: 1;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
}

.auth-telefon-wrap input:focus {
  box-shadow: none !important;
  outline: none;
}

.dogrulama-kod-wrap input {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 12px;
  padding: 14px 20px;
  font-family: 'Courier New', monospace;
}

.dogrulama-alt {
  text-align: center;
  margin-top: 20px;
}

.dogrulama-sure {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

.dogrulama-sure span {
  font-weight: 700;
  color: #2563eb;
}

.dogrulama-tekrar-btn {
  background: none;
  border: none;
  color: #2563eb;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background .2s;
}

.dogrulama-tekrar-btn:hover {
  background: #eff6ff;
  text-decoration: underline;
}
