:root {
  --win-mica-top: #f7fbff;
  --win-mica-bottom: #edf3fa;
  --win-text: #1f2937;
  --win-muted: #5b6472;
  --win-shadow: 0 16px 44px rgba(15, 28, 48, 0.14);
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Poppins", "Segoe UI", "Inter", sans-serif;
  color: var(--win-text);
  min-height: 100vh;
  background:
    radial-gradient(900px 480px at 10% 5%, rgba(14, 165, 233, 0.2), transparent 58%),
    radial-gradient(820px 460px at 92% 88%, rgba(249, 115, 22, 0.2), transparent 56%),
    linear-gradient(to bottom right, #e0f2fe 0%, #f8fafc 46%, #ffedd5 100%);
}

.bg-shape {
  position: fixed;
  border-radius: 999px;
  filter: blur(86px);
  z-index: -1;
  opacity: 0.75;
}

.bg-one {
  width: 360px;
  height: 360px;
  background: rgba(108, 176, 255, 0.42);
  top: -110px;
  left: -120px;
}

.bg-two {
  width: 320px;
  height: 320px;
  background: rgba(251, 146, 60, 0.34);
  right: -100px;
  bottom: -95px;
}

.app {
  max-width: 1160px;
}

.app.auth-center {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding-top: 0;
  padding-bottom: 0;
}

.app.auth-center .hero {
  text-align: center;
}

.hero {
  padding: 0.25rem 0.15rem 0.55rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(14, 116, 144, 0.2);
}

#authCard {
  width: 50%;
  min-width: 340px;
}

.hidden {
  display: none;
}

.hint {
  margin-top: 0.5rem;
  opacity: 0.82;
  color: var(--win-muted);
}

.reminders {
  margin-bottom: 0.8rem;
}

.alert {
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-left: 4px solid #0067c0;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(228, 242, 255, 0.9), rgba(240, 248, 255, 0.75));
  margin-bottom: 0.5rem;
}

.small {
  color: var(--win-muted);
}

.frost-card {
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.68));
  backdrop-filter: blur(20px) saturate(1.14);
  -webkit-backdrop-filter: blur(20px) saturate(1.14);
  box-shadow: var(--win-shadow);
}

.frost-kpi {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  padding: 0.85rem;
}

.table-wrap {
  overflow: auto;
}

/* Fallback positioning if utility classes are unavailable or delayed. */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal.hidden {
  display: none;
}

.message-modal {
  align-items: flex-start;
  padding-top: 1.5rem;
}

@media (max-width: 992px) {
  #authCard {
    width: 100%;
    min-width: 0;
  }

  .hero .display-5 {
    font-size: 2rem;
  }

  .app {
    max-width: 100%;
  }
}

.modal-section { padding: 1rem; }

.btn-close {
  border: 0;
  background: rgba(36, 56, 82, 0.08);
  color: #223;
  border-radius: 10px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 0.95rem;
}

.manager-menu-btn:focus,
.manager-menu-btn:focus-visible {
  outline: none;
  border-color: #f59e0b;
  background: #fef3c7;
  color: #7c2d12;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}
