/* Premium auth modal — clean light card, no gradient header */
body.mat-auth-modal-open {
  overflow: hidden;
}

body.mat-auth-modal-open .modal-backdrop.show {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 1;
}

#authModal.mat-auth-premium .modal-dialog {
  max-width: 400px;
}

#authModal.mat-auth-premium .modal-content {
  position: relative;
  border: 1px solid #e8ecf1;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.03),
    0 24px 48px -12px rgba(15, 23, 42, 0.18);
}

/* İnce marka çizgisi — gradient değil */
#authModal.mat-auth-premium .mat-auth-accent {
  height: 3px;
  background: #900216;
  flex-shrink: 0;
}

#authModal.mat-auth-premium .mat-auth-head {
  position: relative;
  padding: 1.65rem 1.65rem 0.25rem;
  text-align: center;
  color: #0f172a;
  background: #fff;
}

#authModal.mat-auth-premium .mat-auth-head .btn-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  background-color: #f1f5f9;
  background-size: 0.7rem;
  border: none;
  opacity: 0.75;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

#authModal.mat-auth-premium .mat-auth-head .btn-close:hover {
  background-color: #e2e8f0;
  opacity: 1;
}

#authModal.mat-auth-premium .mat-auth-head-inner {
  position: relative;
  z-index: 1;
}

#authModal.mat-auth-premium .mat-auth-icon {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #900216;
  background: #fdf2f4;
  border: 1px solid #f5d0d6;
}

#authModal.mat-auth-premium .mat-auth-head h2 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 0 0.4rem;
  color: #0f172a;
}

#authModal.mat-auth-premium .mat-auth-head p {
  margin: 0 auto;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #64748b;
  max-width: 28ch;
}

#authModal.mat-auth-premium .mat-auth-program {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: calc(100% - 1rem);
  margin-top: 0.75rem;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

#authModal.mat-auth-premium .mat-auth-program i {
  color: #900216;
  font-size: 0.7rem;
  flex-shrink: 0;
}

#authModal.mat-auth-premium .mat-auth-program span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 260px;
}

#authModal.mat-auth-premium .mat-auth-program.d-none {
  display: none !important;
}

#authModal.mat-auth-premium .mat-auth-body {
  padding: 1.15rem 1.65rem 1.65rem;
  background: #fff;
}

#authModal.mat-auth-premium .mat-auth-label {
  display: block;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.4rem;
}

#authModal.mat-auth-premium .mat-auth-input-wrap {
  position: relative;
}

#authModal.mat-auth-premium .mat-auth-input-wrap i {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.88rem;
  pointer-events: none;
}

#authModal.mat-auth-premium .mat-auth-input-wrap .form-control {
  padding: 0.72rem 0.95rem 0.72rem 2.55rem;
  min-height: 2.85rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 0.94rem;
  color: #0f172a;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#authModal.mat-auth-premium .mat-auth-input-wrap .form-control::placeholder {
  color: #94a3b8;
}

#authModal.mat-auth-premium .mat-auth-input-wrap .form-control:focus {
  border-color: #900216;
  box-shadow: 0 0 0 3px rgba(144, 2, 22, 0.1);
}

#authModal.mat-auth-premium .btn-mat-auth-primary {
  width: 100%;
  margin-top: 0.15rem;
  padding: 0.78rem 1rem;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.94rem;
  color: #fff;
  background: #900216;
  box-shadow: none;
  transition: background 0.18s ease;
}

#authModal.mat-auth-premium .btn-mat-auth-primary:hover {
  color: #fff;
  background: #7a0112;
}

#authModal.mat-auth-premium .btn-mat-auth-primary:active {
  background: #6a0110;
}

#authModal.mat-auth-premium .mat-auth-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.15rem 0;
  color: #94a3b8;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#authModal.mat-auth-premium .mat-auth-divider::before,
#authModal.mat-auth-premium .mat-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

#authModal.mat-auth-premium .btn-mat-auth-google {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

#authModal.mat-auth-premium .btn-mat-auth-google:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
}

#authModal.mat-auth-premium .btn-mat-auth-google .mat-auth-g-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

#authModal.mat-auth-premium .mat-auth-msg {
  min-height: 1.35rem;
  margin-bottom: 0.65rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.35;
}

#authModal.mat-auth-premium .mat-auth-msg:empty {
  display: none;
  min-height: 0;
  margin: 0;
  padding: 0;
}

#authModal.mat-auth-premium .mat-auth-msg.err {
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

#authModal.mat-auth-premium .mat-auth-msg.ok {
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

#authModal.mat-auth-premium .mat-auth-footnote {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: center;
  color: #64748b;
}

#authModal.mat-auth-premium .mat-auth-footnote a {
  color: #900216;
  font-weight: 600;
  text-decoration: none;
}

#authModal.mat-auth-premium .mat-auth-footnote a:hover {
  text-decoration: underline;
}

@media (max-width: 575.98px) {
  #authModal.mat-auth-premium .modal-dialog {
    margin: 0.75rem;
  }

  #authModal.mat-auth-premium .mat-auth-body {
    padding: 1rem 1.25rem 1.35rem;
  }

  #authModal.mat-auth-premium .mat-auth-head {
    padding: 1.5rem 1.25rem 0.2rem;
  }
}

[data-theme="dark"] #authModal.mat-auth-premium .modal-content {
  background: #0f172a;
  border-color: #1e293b;
}

[data-theme="dark"] #authModal.mat-auth-premium .mat-auth-head {
  background: #0f172a;
}

[data-theme="dark"] #authModal.mat-auth-premium .mat-auth-head h2 {
  color: #f1f5f9;
}

[data-theme="dark"] #authModal.mat-auth-premium .mat-auth-head p {
  color: #94a3b8;
}

[data-theme="dark"] #authModal.mat-auth-premium .mat-auth-icon {
  background: rgba(144, 2, 22, 0.15);
  border-color: rgba(144, 2, 22, 0.25);
  color: #fca5a5;
}

[data-theme="dark"] #authModal.mat-auth-premium .mat-auth-program {
  background: #1e293b;
  border-color: #334155;
  color: #cbd5e1;
}

[data-theme="dark"] #authModal.mat-auth-premium .mat-auth-body {
  background: #0f172a;
}

[data-theme="dark"] #authModal.mat-auth-premium .mat-auth-head .btn-close {
  background-color: #1e293b;
  filter: invert(1);
  opacity: 0.7;
}

[data-theme="dark"] #authModal.mat-auth-premium .mat-auth-label {
  color: #94a3b8;
}

[data-theme="dark"] #authModal.mat-auth-premium .mat-auth-input-wrap .form-control {
  background: #0f172a;
  border-color: #334155;
  color: #f1f5f9;
}

[data-theme="dark"] #authModal.mat-auth-premium .btn-mat-auth-google {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

[data-theme="dark"] #authModal.mat-auth-premium .mat-auth-footnote {
  border-top-color: #1e293b;
  color: #94a3b8;
}
