/* CreativeHealth login — builds on CreativePortal landing.css (dark surface, orange accent). */

.health-login-page {
  min-height: 100vh;
}

.health-login-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.health-login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}

.health-login-orb--accent {
  width: 460px;
  height: 460px;
  top: -120px;
  right: -80px;
  background: rgba(var(--landing-accent-rgb), 0.45);
}

.health-login-orb--teal {
  width: 420px;
  height: 420px;
  bottom: -140px;
  left: -100px;
  background: rgba(var(--landing-teal-rgb), 0.35);
}

.health-login-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}

.health-login-page header,
.health-login-page .container,
.health-login-page footer {
  position: relative;
  z-index: 1;
}

.health-login-nav-note {
  color: var(--landing-muted) !important;
}

.health-login-wrap {
  min-height: calc(100vh - 72px - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0;
}

.health-login-card {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(180deg, rgba(20, 28, 38, 0.86), rgba(12, 18, 24, 0.9));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  animation: health-login-in 0.35s ease-out both;
}

@keyframes health-login-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.health-login-logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  color: var(--landing-accent);
  background: linear-gradient(145deg, #171d27, #0f131a);
  border: 1px solid rgba(var(--landing-accent-rgb), 0.35);
  box-shadow: 0 10px 30px rgba(var(--landing-accent-rgb), 0.22);
}

.health-login-card h1 {
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.health-login-lead {
  color: var(--landing-muted);
  font-size: 0.92rem;
}

.health-login-lead strong {
  color: #e8edf5;
}

.health-login-card .form-label {
  color: #cdd5e0;
  font-weight: 600;
  font-size: 0.88rem;
}

.health-input-group .input-group-text {
  background: rgba(5, 8, 12, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-right: 0;
  color: var(--landing-muted);
  min-width: 2.85rem;
  justify-content: center;
}

.portal-landing .health-input-group .form-control {
  border-left: 0;
}

.health-input-group:focus-within .input-group-text,
.health-input-group:focus-within .health-pass-toggle {
  border-color: rgba(var(--landing-accent-rgb), 0.55);
  color: var(--landing-accent);
}

.health-pass-toggle {
  background: rgba(5, 8, 12, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 0;
  color: var(--landing-muted);
  min-width: 2.85rem;
}

.health-pass-toggle:hover,
.health-pass-toggle:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.portal-landing .health-input-group .form-control:focus {
  box-shadow: none;
}

.health-input-group:focus-within {
  border-radius: 0.375rem;
  box-shadow: 0 0 0 0.2rem rgba(var(--landing-accent-rgb), 0.18);
}

.was-validated .health-input-group .form-control:invalid {
  border-color: rgba(255, 107, 107, 0.7);
}

.health-caps-hint {
  color: #ffc46b;
}

.health-login-card .form-check-label {
  color: #cdd5e0;
}

.health-login-alert {
  color: #ffd7d7;
  background: rgba(220, 53, 69, 0.14);
  border: 1px solid rgba(220, 53, 69, 0.45);
  border-radius: 10px;
  font-size: 0.92rem;
  animation: health-shake 0.35s ease-in-out;
}

@keyframes health-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.health-login-submit {
  min-height: 2.9rem;
  border-radius: 10px;
  letter-spacing: 0.01em;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.health-login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(var(--landing-accent-rgb), 0.3);
}

.health-login-submit__busy {
  display: none;
}

.health-login-submit.is-busy {
  pointer-events: none;
  opacity: 0.85;
}

.health-login-submit.is-busy .health-login-submit__idle {
  display: none;
}

.health-login-submit.is-busy .health-login-submit__busy {
  display: inline;
}
