/**
 * auth-modal.css — Müşteri giriş / kayıt modalları (.am izole)
 */
.am-modal .modal-dialog { max-width: 440px; }
.am-modal__content {
  border: none; border-radius: 24px; overflow: hidden;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(255,255,255,0.06);
  background: #fff;
}
.am-modal__body {
  padding: 28px 28px 24px; position: relative;
}
.am-modal__close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 36px; height: 36px; border: none; border-radius: 10px;
  background: #f1f5f9; color: #64748b; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.am-modal__close:hover { background: #e2e8f0; color: #0f172a; }

.am-alerts { margin-bottom: 14px; }
.am-alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 14px; border-radius: 12px; font-size: 0.82rem; font-weight: 600; line-height: 1.45;
}
.am-alert i { flex-shrink: 0; margin-top: 1px; font-size: 1rem; }
.am-alert--warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.am-alert--err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.am-alert--info { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

.am-head { text-align: center; margin-bottom: 22px; }
.am-head__icon {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%;
  background: linear-gradient(145deg, #0ea5e9, #0284c7);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.65rem; box-shadow: 0 10px 28px rgba(2, 132, 199, 0.35);
}
.am-head__icon--register {
  background: linear-gradient(145deg, #22c55e, #16a34a);
  box-shadow: 0 10px 28px rgba(22, 163, 74, 0.3);
}
.am-head h2 {
  margin: 0 0 6px; font-size: 1.35rem; font-weight: 800; color: #0f172a;
  letter-spacing: -0.02em;
}
.am-head p { margin: 0; font-size: 0.84rem; color: #64748b; line-height: 1.55; max-width: 320px; margin-inline: auto; }

.am-form { display: flex; flex-direction: column; gap: 14px; }
.am-field label {
  display: block; font-size: 0.78rem; font-weight: 700; color: #334155; margin-bottom: 6px;
}
.am-input-wrap {
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px; height: 48px;
  background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 14px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.am-input-wrap:focus-within {
  border-color: #0284c7; background: #fff;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}
.am-input-wrap > i.bi:first-child { color: #94a3b8; font-size: 1.05rem; flex-shrink: 0; }
.am-input-wrap input {
  flex: 1; border: none; background: transparent; outline: none;
  font-size: 0.92rem; font-weight: 600; color: #0f172a; min-width: 0;
}
.am-input-wrap input::placeholder { color: #94a3b8; font-weight: 500; }
.am-toggle-pw {
  border: none; background: none; color: #94a3b8; cursor: pointer;
  padding: 4px; font-size: 1.05rem; line-height: 1; flex-shrink: 0;
}
.am-toggle-pw:hover { color: #0284c7; }
.am-hint { display: block; font-size: 0.72rem; color: #94a3b8; margin-top: 5px; font-weight: 500; }

.am-info {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff, #f0f9ff);
  border: 1px solid #bfdbfe; font-size: 0.78rem; color: #1e40af; line-height: 1.5;
}
.am-info i { flex-shrink: 0; margin-top: 1px; }
.am-info b { font-weight: 800; }

.am-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px 20px; border: none; border-radius: 14px;
  font-size: 0.92rem; font-weight: 800; cursor: pointer; transition: all 0.2s;
}
.am-btn:disabled { opacity: 0.7; cursor: not-allowed; }
.am-btn--primary {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff; box-shadow: 0 8px 24px rgba(2, 132, 199, 0.35);
}
.am-btn--primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  transform: translateY(-1px); box-shadow: 0 12px 28px rgba(2, 132, 199, 0.4);
}
.am-btn--success {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff; box-shadow: 0 8px 24px rgba(22, 163, 74, 0.3);
}
.am-btn--success:hover:not(:disabled) { transform: translateY(-1px); }
.am-btn--ghost {
  background: #f8fafc; color: #64748b; border: 1px solid #e2e8f0; margin-top: 4px;
}
.am-btn--ghost:hover { background: #f1f5f9; color: #334155; }

.am-switch {
  text-align: center; margin: 16px 0 0; padding-top: 16px;
  border-top: 1px solid #f1f5f9; font-size: 0.82rem; color: #64748b;
}
.am-switch a {
  color: #0284c7; font-weight: 800; text-decoration: none;
}
.am-switch a:hover { text-decoration: underline; }

.am-divider {
  display: flex; align-items: center; gap: 12px; margin: 18px 0 14px;
  font-size: 0.7rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.06em;
}
.am-divider::before, .am-divider::after {
  content: ''; flex: 1; height: 1px; background: #e2e8f0;
}

.am-alt { display: flex; flex-direction: column; gap: 10px; }
.am-alt-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border-radius: 16px; text-decoration: none; border: 2px solid;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.am-alt-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.am-alt-card__icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0;
}
.am-alt-card__text { flex: 1; min-width: 0; }
.am-alt-card__text strong { display: block; font-size: 0.88rem; font-weight: 800; color: #0f172a; }
.am-alt-card__text small { display: block; font-size: 0.74rem; color: #64748b; margin-top: 2px; line-height: 1.35; }
.am-alt-card > .bi-arrow-right { color: #94a3b8; flex-shrink: 0; }

.am-alt-card--bayi { border-color: #99f6e4; background: #f0fdfa; }
.am-alt-card--bayi .am-alt-card__icon { background: #ccfbf1; color: #0d9488; }
.am-alt-card--bayi .am-alt-card__text strong { color: #0f766e; }
.am-alt-card--bayi:hover { background: #ecfdf5; box-shadow: 0 4px 16px rgba(13,148,136,0.1); }

.am-alt-card--admin { border-color: #c4b5fd; background: #f5f3ff; }
.am-alt-card--admin .am-alt-card__icon { background: #ede9fe; color: #6366f1; }
.am-alt-card--admin .am-alt-card__text strong { color: #5b21b6; }
.am-alt-card--admin:hover { background: #ede9fe; box-shadow: 0 4px 16px rgba(99,102,241,0.1); }

/* Kayıt formu — kompakt alanlar */
.am-form--register { gap: 10px; }
.am-form--register .am-input-wrap { height: 44px; }

.am-modal.fade .modal-dialog { transform: translateY(16px) scale(0.98); transition: transform 0.3s cubic-bezier(0.22,1,0.36,1); }
.am-modal.show .modal-dialog { transform: translateY(0) scale(1); }

body.modal-open .modal-backdrop.show {
  background-color: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

@media (max-width: 479px) {
  .am-modal__body { padding: 24px 20px 20px; }
  .am-head h2 { font-size: 1.2rem; }
}
