/* Light portal login theme: glass card + weather strip. Scoped to .login-theme-light. */
.login-theme-light {
  --portal-white: #F8FBFF;
  --portal-light-blue: #DDEBFF;
  --portal-sky: #B9D5FF;
  --portal-accent: #3A7CFF;
  --portal-text: #1F2A44;
  --portal-text-muted: #6C7A96;
}

body {
  background: var(--portal-white);
  color: var(--portal-text);
}

/* 2D background (gradient, haze, grid, sparkles) */
.login-theme-light #bg3d {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* 3D globe in front of 2D layers, below UI */
.login-theme-light #globe3d {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .login-theme-light #bg3d,
  .login-theme-light #globe3d {
    display: none;
  }
}

/* Page vignette: above canvas, below UI */
.login-theme-light::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(600px 420px at 50% 35%, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0) 70%),
    radial-gradient(1200px 900px at 50% 50%, rgba(180, 210, 255, 0.18), rgba(180, 210, 255, 0) 65%),
    radial-gradient(1200px 900px at 50% 60%, rgba(0, 60, 160, 0.06), rgba(0, 60, 160, 0) 60%);
}

.login-theme-light .portal {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: clamp(16px, 3vw, 22px);
  padding: clamp(16px, 4vw, 24px);
  box-sizing: border-box;
}

.login-theme-light .login-card {
  position: relative;
  width: min(520px, 92vw);
  border-radius: 26px;
  padding: clamp(24px, 5vw, 34px) clamp(28px, 6vw, 38px) clamp(20px, 4vw, 28px);
  text-align: center;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 35, 80, 0.08);
  box-shadow:
    0 36px 90px rgba(16, 30, 55, 0.18),
    0 6px 22px rgba(16, 30, 55, 0.10),
    0 1px 0 rgba(255, 255, 255, 0.75) inset;
}

.login-theme-light .login-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(120, 170, 255, 0.10) inset;
}

@supports (backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px)) {
  .login-theme-light .login-card {
    backdrop-filter: blur(20px) saturate(130%);
    -webkit-backdrop-filter: blur(20px) saturate(130%);
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .login-theme-light .login-card {
    background: rgba(255, 255, 255, 0.94);
  }
}

.login-theme-light .brand {
  margin: 0;
  font-weight: 750;
  letter-spacing: 0.02em;
  font-size: clamp(28px, 5vw, 40px);
  color: var(--portal-text);
}

.login-theme-light .subtitle {
  margin: 8px 0 clamp(16px, 3vw, 22px);
  font-size: clamp(16px, 2.2vw, 18px);
  color: rgba(31, 42, 68, 0.55);
}

.login-theme-light .login-form {
  display: grid;
  gap: 14px;
}

.login-theme-light .validation-summary {
  color: #b91c1c;
  font-size: 0.9rem;
  margin: 0 0 4px 0;
  text-align: left;
}

.login-theme-light .input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(15, 35, 80, 0.10);
  background: rgba(255, 255, 255, 0.82);
  color: var(--portal-text);
  font-size: clamp(16px, 2vw, 18px);
  outline: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.80) inset,
    0 10px 20px rgba(20, 40, 80, 0.04);
}

.login-theme-light .input::placeholder {
  color: rgba(31, 42, 68, 0.45);
}

.login-theme-light .input:focus {
  border-color: rgba(58, 124, 255, 0.42);
  box-shadow:
    0 0 0 4px rgba(58, 124, 255, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.80) inset;
}

.login-theme-light .btn-primary {
  margin-top: 6px;
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: clamp(18px, 2.2vw, 20px);
  font-weight: 700;
  cursor: pointer;
  color: white;
  background: linear-gradient(180deg, #4F93FF 0%, #2E6FEA 100%);
  box-shadow:
    0 18px 44px rgba(46, 111, 234, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

.login-theme-light .btn-primary:hover {
  filter: brightness(1.02);
}

.login-theme-light .btn-primary:active {
  transform: translateY(1px);
}

.login-theme-light .btn-primary:disabled {
  opacity: 0.85;
  cursor: not-allowed;
}

.login-theme-light .link-muted {
  margin-top: 4px;
  display: inline-block;
  text-decoration: none;
  color: rgba(31, 42, 68, 0.55);
  font-size: 16px;
}

.login-theme-light .link-muted:hover {
  color: rgba(31, 42, 68, 0.75);
}

.login-theme-light .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Weather strip: host for <yso-weather> (footer mode). Empty when no forecast. */
.login-theme-light .weather-strip {
  width: min(860px, 92vw);
  min-height: 52px;
  border-radius: 20px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(15, 35, 80, 0.08);
  box-shadow:
    0 30px 80px rgba(16, 30, 55, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.70) inset;
}

.login-theme-light .weather-strip yso-weather {
  display: block;
  width: 100%;
}

@supports (backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px)) {
  .login-theme-light .weather-strip {
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .login-theme-light .weather-strip {
    background: rgba(255, 255, 255, 0.88);
  }
}
