/* Giriş / Kayıt — shadcn tarzı yumuşak animasyon & kart; Printalya renk paleti */

.printalya-auth-modal.modal {
  --pa-cream: #f7f3ec;
  --pa-cream-dark: #ede8df;
  --pa-white: #ffffff;
  --pa-ink: #18150d;
  --pa-ink-soft: #2d2a22;
  --pa-rust: #c0521a;
  --pa-rust-light: #e8713a;
  --pa-steel: #4e5d6a;
  --pa-steel-mute: rgba(78, 93, 106, 0.72);
  --pa-border: #d8d2c8;
  --pa-font-head: "Lexend", system-ui, -apple-system, sans-serif;
  --pa-font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --pa-radius-sheet: 12px;
  --pa-radius-ctrl: 8px;
  --pa-shadow-card: 0 0 0 1px rgba(24, 21, 13, 0.04),
    0 8px 24px rgba(24, 21, 13, 0.08), 0 24px 64px rgba(24, 21, 13, 0.1);
}

/* Backdrop — hafif blur + sıcak ton */
@media (prefers-reduced-motion: no-preference) {
  body.modal-open .modal-backdrop.fade {
    transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1),
      backdrop-filter 0.28s ease,
      -webkit-backdrop-filter 0.28s ease;
  }
}

body.modal-open .modal-backdrop.show {
  background-color: rgba(24, 21, 13, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@media (prefers-reduced-motion: reduce) {
  body.modal-open .modal-backdrop.show {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.printalya-auth-modal .modal-dialog {
  max-width: 400px;
  margin-inline: auto;
}

/* İçerik girişi — scale + fade (shadcn zoom-in hissi) */
@media (prefers-reduced-motion: no-preference) {
  .printalya-auth-modal.fade .modal-dialog {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
    transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1),
      transform 0.28s cubic-bezier(0.34, 1.08, 0.64, 1);
  }

  .printalya-auth-modal.show .modal-dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.printalya-auth-modal .pa-auth-sheet.modal-content {
  position: relative;
  font-family: var(--pa-font-body);
  color: var(--pa-ink);
  background: var(--pa-white);
  border: 1px solid var(--pa-border);
  border-radius: var(--pa-radius-sheet);
  box-shadow: var(--pa-shadow-card);
  overflow: visible;
}

.printalya-auth-modal .pa-auth-body.modal-body {
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--pa-white);
}

/* Kapat — yuvarlak, hafif hover */
.printalya-auth-modal .pa-auth-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: var(--pa-radius-ctrl);
  background: transparent;
  color: var(--pa-ink-soft);
  cursor: pointer;
  transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.2s ease, transform 0.15s ease;
}

.printalya-auth-modal .pa-auth-close:hover {
  background: var(--pa-cream-dark);
  color: var(--pa-ink);
}

.printalya-auth-modal .pa-auth-close:focus-visible {
  outline: 2px solid var(--pa-rust);
  outline-offset: 2px;
}

.printalya-auth-modal .pa-auth-close i {
  font-size: 0.85rem;
  opacity: 0.65;
  transition: opacity 0.2s ease;
}

.printalya-auth-modal .pa-auth-close:hover i {
  opacity: 1;
}

/* Hero — ikon halkası + başlık + açıklama */
.printalya-auth-modal .pa-auth-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
}

.printalya-auth-modal .pa-auth-icon-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border: 1px solid var(--pa-border);
  border-radius: 9999px;
  background: linear-gradient(180deg, var(--pa-cream) 0%, var(--pa-white) 100%);
  box-shadow: 0 1px 2px rgba(24, 21, 13, 0.04);
  color: var(--pa-ink);
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
}

.printalya-auth-modal h2.pa-auth-title {
  margin: 0;
  padding: 0 1.75rem;
  font-family: var(--pa-font-head);
  font-weight: 700;
  font-size: 1.125rem !important;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--pa-ink);
}

@media (min-width: 576px) {
  .printalya-auth-modal h2.pa-auth-title {
    font-size: 1.1875rem;
  }
}

.printalya-auth-modal .pa-auth-desc {
  margin: 0 auto;
  max-width: 19rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--pa-steel-mute);
}

.printalya-auth-modal .pa-auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  text-align: left;
}

.printalya-auth-modal .pa-auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.printalya-auth-modal .pa-auth-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--pa-ink);
  letter-spacing: 0.01em;
}

.printalya-auth-modal .pa-auth-input.form-control {
  border: 1px solid var(--pa-border);
  border-radius: var(--pa-radius-ctrl);
  padding: 0.55rem 0.82rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--pa-ink);
  background-color: var(--pa-white);
  box-shadow: 0 1px 2px rgba(24, 21, 13, 0.03);
  transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease;
}

.printalya-auth-modal .pa-auth-input.form-control:hover {
  border-color: rgba(24, 21, 13, 0.18);
}

.printalya-auth-modal .pa-auth-input.form-control::placeholder {
  color: rgba(78, 93, 106, 0.45);
}

.printalya-auth-modal .pa-auth-input.form-control:focus {
  border-color: var(--pa-rust);
  box-shadow: 0 0 0 3px rgba(192, 82, 26, 0.12);
  background-color: var(--pa-white);
  outline: none;
}

.printalya-auth-modal .pa-auth-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 0.5rem;
  margin-top: -0.15rem;
}

.printalya-auth-modal .pa-auth-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.printalya-auth-modal .pa-auth-checkbox.form-check-input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  border: 1px solid var(--pa-border);
  border-radius: 4px;
  cursor: pointer;
}

.printalya-auth-modal .pa-auth-checkbox.form-check-input:checked {
  background-color: var(--pa-rust);
  border-color: var(--pa-rust);
}

.printalya-auth-modal .pa-auth-checkbox.form-check-input:focus {
  border-color: var(--pa-rust);
  box-shadow: 0 0 0 3px rgba(192, 82, 26, 0.12);
}

.printalya-auth-modal .pa-auth-check-label.form-check-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--pa-steel-mute);
  cursor: pointer;
}

.printalya-auth-modal .pa-auth-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--pa-rust);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.printalya-auth-modal .pa-auth-link:hover {
  color: var(--pa-rust-light);
}

/* Birincil gönder */
.printalya-auth-modal .pa-auth-submit {
  margin-top: 0.2rem;
  display: inline-flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  padding: 0.62rem 1rem;
  font-family: var(--pa-font-body);
  font-weight: 700;
  font-size: 0.9375rem;
  color: #fff !important;
  background: var(--pa-rust) !important;
  border: none !important;
  border-radius: var(--pa-radius-ctrl) !important;
  box-shadow: 0 1px 2px rgba(24, 21, 13, 0.06);
  cursor: pointer;
  transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.2s ease, transform 0.15s ease;
}

.printalya-auth-modal .pa-auth-submit:hover {
  background: var(--pa-rust-light) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(192, 82, 26, 0.28);
}

.printalya-auth-modal .pa-auth-submit:active {
  transform: translateY(1px);
}

.printalya-auth-modal .pa-auth-submit:focus-visible {
  box-shadow: 0 0 0 3px rgba(192, 82, 26, 0.28);
}

/* Ayırıcı */
.printalya-auth-modal .pa-auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pa-steel-mute);
}

.printalya-auth-modal .pa-auth-divider::before,
.printalya-auth-modal .pa-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--pa-border);
}

/* İkincil / outline */
.printalya-auth-modal .pa-auth-outline {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  padding: 0.58rem 1rem;
  font-family: var(--pa-font-body);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--pa-ink) !important;
  background: var(--pa-white) !important;
  border: 1px solid var(--pa-border) !important;
  border-radius: var(--pa-radius-ctrl) !important;
  box-shadow: 0 1px 2px rgba(24, 21, 13, 0.04);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease, color 0.2s ease;
}

.printalya-auth-modal .pa-auth-outline:hover {
  background: var(--pa-cream) !important;
  border-color: rgba(24, 21, 13, 0.2) !important;
  color: var(--pa-rust) !important;
}

.printalya-auth-modal .pa-auth-outline:focus-visible {
  outline: 2px solid var(--pa-rust);
  outline-offset: 2px;
}

.printalya-auth-modal .pa-auth-outline:disabled,
.printalya-auth-modal .pa-auth-outline[disabled] {
  cursor: not-allowed;
  opacity: 0.72;
  background: var(--pa-cream) !important;
  color: var(--pa-steel) !important;
  border-color: var(--pa-border) !important;
  box-shadow: none;
}

.printalya-auth-modal .pa-auth-outline:disabled:hover,
.printalya-auth-modal .pa-auth-outline[disabled]:hover {
  background: var(--pa-cream) !important;
  color: var(--pa-steel) !important;
  border-color: var(--pa-border) !important;
}

.printalya-auth-modal .pa-auth-closed-note {
  margin: 0.85rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--pa-steel-mute);
}

.printalya-auth-modal .pa-auth-closed-note a {
  color: var(--pa-rust);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.printalya-auth-modal .pa-auth-closed-note a:hover {
  color: var(--pa-rust-light);
}

@media (prefers-reduced-motion: reduce) {
  .printalya-auth-modal.fade .modal-dialog,
  .printalya-auth-modal.show .modal-dialog {
    opacity: 1;
    transform: none;
    transition: none;
  }

  body.modal-open .modal-backdrop.fade {
    transition: none;
  }
}

/* Eski BS kapat ikonunu gizle (özel buton kullanılıyor) */
.printalya-auth-modal .btn-close {
  display: none;
}
