/* Loading overlay spinner keyframe (used by #loading-overlay in index.html). */
@keyframes lspin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Cognito sign-in overlay. Shown at app load until a valid session exists. */
#auth-overlay {
  position: fixed; inset: 0; z-index: 99999;
  background: #030F14;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Figtree', sans-serif;
}
.auth-box {
  background: #111C22;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 48px 44px;
  width: 100%; max-width: 420px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.auth-logo {
  font-family: 'Merriweather', serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.auth-logo span { color: #ffffff; }
.auth-sub {
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  margin-bottom: 36px;
}
.auth-label {
  display: block;
  color: rgba(255,255,255,0.55);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}
.auth-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: #fff;
  font-family: 'Figtree', sans-serif;
  font-size: 0.95rem;
  margin-bottom: 20px;
  transition: border-color 0.2s;
}
.auth-input:focus {
  outline: none;
  border-color: #52B788;
  background: rgba(82,183,136,0.06);
}
.auth-btn {
  width: 100%;
  padding: 13px;
  background: #5F98B3;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: 'Figtree', sans-serif;
  font-weight: 900;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: 4px;
}
.auth-btn:hover { background: #4A7E99; }
.auth-btn:active { transform: scale(0.99); }
.auth-btn:disabled { background: #3a6475; color: rgba(255,255,255,0.4); cursor: not-allowed; }
.auth-error {
  color: #f87171;
  font-size: 0.83rem;
  margin-top: -12px;
  margin-bottom: 16px;
  display: none;
}
.auth-footer {
  margin-top: 24px;
  text-align: center;
  color: rgba(255,255,255,0.25);
  font-size: 0.75rem;
}
