/* Auth modal — match Next.js AuthModal (Google + email → dental-pms) */
.aisc-auth-modal[hidden] {
  display: none !important;
}
.aisc-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.aisc-auth-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.aisc-auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(60, 63, 94, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.aisc-auth-modal.is-open .aisc-auth-modal__backdrop {
  opacity: 1;
}
.aisc-auth-modal__panel {
  position: relative;
  z-index: 1;
  width: min(840px, 96vw);
  max-height: min(92vh, 720px);
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line, #d8dde6);
  background: var(--panel, #fff);
  box-shadow: 0 24px 64px rgba(15, 17, 21, 0.2);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.aisc-auth-modal.is-open .aisc-auth-modal__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.aisc-auth-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line, #d8dde6);
  background: var(--panel, #fff);
  color: var(--ink, #3c3f5e);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 17, 21, 0.06);
}
.aisc-auth-modal__close:hover { background: var(--panel2, #e6e9ee); }
.aisc-auth-modal__grid {
  display: grid;
  max-height: min(92vh, 720px);
}
@media (min-width: 768px) {
  .aisc-auth-modal__grid { grid-template-columns: 1fr 1fr; }
}
.aisc-auth-modal__copy {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 32px 24px 40px;
}
@media (min-width: 640px) {
  .aisc-auth-modal__copy { padding: 40px 32px; }
}
.aisc-auth-modal__title {
  margin: 0;
  font-family: Poppins, var(--font-display, sans-serif);
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink, #3c3f5e);
  line-height: 1.2;
}
.aisc-auth-modal__lead {
  margin: 8px 0 0;
  color: var(--slate, #7f828e);
  font-size: 0.875rem;
  line-height: 1.55;
}
.aisc-auth-modal__actions {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}
.aisc-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line, #d8dde6);
  background: var(--panel, #fff);
  color: var(--ink, #3c3f5e);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: border-color 0.15s var(--ease, ease), background 0.15s var(--ease, ease);
}
.aisc-auth-btn:hover {
  border-color: color-mix(in srgb, var(--blue, #6366f1) 40%, var(--line, #d8dde6));
  background: var(--panel2, #f8f9fb);
}
.aisc-auth-btn__icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.aisc-auth-modal__legal,
.aisc-auth-modal__classic {
  margin: 32px 0 0;
  font-size: 0.75rem;
  color: var(--slate, #7f828e);
  text-align: center;
  line-height: 1.5;
}
.aisc-auth-modal__classic {
  margin-top: 24px;
  font-weight: 500;
}
.aisc-auth-modal__legal a,
.aisc-auth-modal__classic a {
  color: var(--blue, #6366f1);
  text-underline-offset: 2px;
}
.aisc-auth-modal__classic a:hover { text-decoration: underline; }

.aisc-auth-modal__visual {
  position: relative;
  display: none;
  overflow: hidden;
  background: linear-gradient(135deg, var(--purple, #a855f7), var(--blue, #6366f1) 50%, var(--pink, #ec4899));
  color: #fff;
}
@media (min-width: 768px) {
  .aisc-auth-modal__visual { display: flex; align-items: center; justify-content: center; padding: 40px 32px; }
}
.aisc-auth-modal__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.25), transparent 55%);
  pointer-events: none;
}
.aisc-auth-modal__visual-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.aisc-auth-modal__brand {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 10px 30px rgba(15, 17, 21, 0.15);
}
.aisc-auth-modal__brand img {
  display: block;
  height: 40px;
  width: auto;
}
.aisc-auth-modal__orbit {
  position: relative;
  width: 192px;
  height: 192px;
  margin-top: 40px;
}
.aisc-auth-modal__ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.aisc-auth-modal__ring--dashed {
  inset: 24px;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.35);
}
.aisc-auth-modal__orbit-center {
  position: absolute;
  inset: 0;
  margin: auto;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: #fff;
  color: var(--blue, #6366f1);
  box-shadow: 0 10px 24px rgba(15, 17, 21, 0.18);
}
.aisc-auth-modal__orbit-dot {
  position: absolute;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 17, 21, 0.12);
}
.aisc-auth-modal__orbit-dot span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--blue, #6366f1);
}
.aisc-auth-modal__tagline {
  margin: 32px 0 0;
  max-width: 220px;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.45;
}

body.aisc-auth-open { overflow: hidden; }
.header-actions .aisc-login-link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink, #3c3f5e);
  text-decoration: none;
  margin-right: 4px;
}
.header-actions .aisc-login-link:hover { color: var(--blue, #6366f1); }
.header-actions .button.header-button {
  cursor: pointer;
  font: inherit;
}
