/* public-demo-login-gate.css — Calendar demo login gate modal */

.clg-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(36, 30, 42, 0.48);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  animation: clg-fade-in 0.2s ease forwards;
}

.clg-overlay[hidden] {
  display: none;
}

.clg-panel {
  width: min(420px, 100%);
  border: 1px solid rgba(58, 47, 38, 0.10);
  border-radius: 16px;
  background: #FFFEFB;
  box-shadow: 0 24px 80px rgba(58, 47, 38, 0.18);
  padding: 28px 24px 24px;
  color: #3A2F26;
  transform: scale(0.96) translateY(8px);
  animation: clg-pop-in 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.clg-title {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  color: #3A2F26;
}

.clg-body {
  margin: 0;
  color: #5C4D43;
  font-size: 15px;
  line-height: 1.55;
}

.clg-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
  flex-wrap: wrap;
}

.clg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(58, 47, 38, 0.16);
  border-radius: 999px;
  padding: 10px 20px;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  background: transparent;
  color: #5C4D43;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.clg-btn:hover {
  background: #F5EFE5;
}

.clg-btn--primary {
  border-color: #6E8A7E;
  background: #6E8A7E;
  color: #FFFEFB;
}

.clg-btn--primary:hover {
  background: #4A7A68;
  border-color: #4A7A68;
}

/* ── Animations ── */
@keyframes clg-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes clg-pop-in {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ── Dark mode ── */
[data-theme="dark"] .clg-overlay {
  background: rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] .clg-panel {
  background: #2b2a27;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  color: #E8DDD4;
}

[data-theme="dark"] .clg-title {
  color: #E8DDD4;
}

[data-theme="dark"] .clg-body {
  color: #C8BEB2;
}

[data-theme="dark"] .clg-btn {
  border-color: rgba(255, 255, 255, 0.12);
  color: #E8DDD4;
}

[data-theme="dark"] .clg-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .clg-btn--primary {
  border-color: #4A7A68;
  background: #4A7A68;
  color: #fff;
}

[data-theme="dark"] .clg-btn--primary:hover {
  background: #3D6B57;
  border-color: #3D6B57;
  opacity: 1;
}

/* ── Mobile ── */
@media (max-width: 520px) {
  .clg-overlay {
    align-items: flex-end;
    padding: 12px;
  }
  .clg-panel {
    border-radius: 18px 18px 12px 12px;
  }
  .clg-actions {
    justify-content: stretch;
  }
  .clg-btn {
    flex: 1;
    text-align: center;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .clg-overlay,
  .clg-panel {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
