/* Login pages, always dark (2026-09-30, Joseph's Round 7). Presentation only: the fields, the button, the links and the
   sign-in itself are the page's own and do exactly what they did. Applies to the sign-in page, the one-time-code page
   that follows it and the forgot-password page (inside these three pages the only ".container-fluid" is the page itself). The animated orbs come from thinking-orbs.js and are only tinted here.
   Rollback: delete the login-page.css line in index.html. */

html:not(.lp-a):not(.lp-b) :is(app-signin, app-otp, app-forgot-password) {
  --lp-bg: #070a12;
  --lp-text: #f5f5f7;
  --lp-text-2: rgba(235, 235, 245, .58);
  --lp-text-3: rgba(235, 235, 245, .38);
  --lp-line: rgba(255, 255, 255, .10);
  --lp-accent: #6366f1;
  --lp-accent-soft: #a5b4fc;
  --lp-danger: #f87171;
}

/* ---- the scene: deep background, a slow drifting glow, a faint grid, the orb in the middle ---- */
html:not(.lp-a):not(.lp-b) :is(app-signin, app-otp, app-forgot-password) .container-fluid {
  position: relative; overflow: hidden; min-height: 100vh; color: var(--lp-text);
  background: radial-gradient(1100px 640px at 80% -12%, rgba(79, 70, 229, .26), transparent 62%),
              radial-gradient(900px 560px at 6% 112%, rgba(14, 165, 233, .15), transparent 60%),
              var(--lp-bg);
}
html:not(.lp-a):not(.lp-b) :is(app-signin, app-otp, app-forgot-password) .container-fluid::before {
  content: ""; position: absolute; z-index: 0; inset: -18%; pointer-events: none;
  background: radial-gradient(38% 42% at 30% 38%, rgba(99, 102, 241, .22), transparent 70%),
              radial-gradient(34% 40% at 72% 62%, rgba(34, 211, 238, .13), transparent 70%);
  filter: blur(36px);
  animation: lp-drift 32s ease-in-out infinite alternate;
}
html:not(.lp-a):not(.lp-b) :is(app-signin, app-otp, app-forgot-password) .container-fluid::after {
  content: ""; position: absolute; z-index: 0; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 50%, #000 12%, transparent 74%);
          mask-image: radial-gradient(ellipse 62% 58% at 50% 50%, #000 12%, transparent 74%);
}
@keyframes lp-drift {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to   { transform: translate3d(3%, 3%, 0) scale(1.08); }
}
/* The big orb behind the card: brighter than before, and light-coloured even when the app itself is in light mode. */
html:not(.lp-a):not(.lp-b) :is(app-signin, app-otp, app-forgot-password) .container-fluid .orb-ambient { width: min(820px, 112vmin); height: min(820px, 112vmin); opacity: .5; }
html:not(.lp-a):not(.lp-b) body:not(.dark) :is(app-signin, app-otp, app-forgot-password) .orb-ambient { filter: invert(1); }
html:not(.lp-a):not(.lp-b) :is(app-signin, app-otp, app-forgot-password) .container-fluid > .row { position: relative; z-index: 1; }

/* ---- the card ---- */
html:not(.lp-a):not(.lp-b) :is(app-signin, app-otp, app-forgot-password) .container-fluid .col-lg-4 { flex: 0 0 auto; width: 100%; max-width: 456px; padding: 24px 16px; }
html:not(.lp-a):not(.lp-b) :is(app-signin, app-otp, app-forgot-password) .container-fluid .auth-content {
  padding: 40px 34px 34px !important; border-radius: 20px;
  background: linear-gradient(180deg, rgba(24, 28, 44, .74), rgba(11, 14, 24, .78));
  border: 1px solid var(--lp-line);
  -webkit-backdrop-filter: blur(22px) saturate(1.25); backdrop-filter: blur(22px) saturate(1.25);
  box-shadow: 0 32px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .07);
}
html:not(.lp-a):not(.lp-b) :is(app-signin, app-otp, app-forgot-password) .container-fluid .col-lg-9 { flex: 0 0 100%; width: 100%; max-width: 100%; }
html:not(.lp-a):not(.lp-b) :is(app-signin, app-otp, app-forgot-password) .container-fluid .auth-content .p-2.mt-5 { margin-top: 26px !important; padding: 0 !important; }

/* ---- heading ---- */
html:not(.lp-a):not(.lp-b) :is(app-signin, app-otp, app-forgot-password) .container-fluid .text-center { color: var(--lp-text); }
html:not(.lp-a):not(.lp-b) :is(app-signin, app-otp, app-forgot-password) .container-fluid .text-center h4 { margin: 12px 0 4px !important; font-size: 22px; font-weight: 600; letter-spacing: -.01em; color: var(--lp-text); }
html:not(.lp-a):not(.lp-b) :is(app-signin, app-otp, app-forgot-password) .container-fluid .text-center p { margin: 0; font-size: 13px; letter-spacing: .03em; color: var(--lp-text-2) !important; }

/* ---- fields ---- */
html:not(.lp-a):not(.lp-b) :is(app-signin, app-otp, app-forgot-password) .container-fluid .auth-form-group { margin-bottom: 14px !important; }
html:not(.lp-a):not(.lp-b) :is(app-signin, app-otp, app-forgot-password) .container-fluid .auth-control {
  height: 48px; padding: 0 16px 0 50px; font-size: 15px; color: var(--lp-text); caret-color: var(--lp-accent-soft);
  background: rgba(255, 255, 255, .045); border: 1px solid var(--lp-line); border-radius: 12px; box-shadow: none;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
html:not(.lp-a):not(.lp-b) :is(app-signin, app-otp, app-forgot-password) .container-fluid .auth-control::placeholder { color: var(--lp-text-3); opacity: 1; }
html:not(.lp-a):not(.lp-b) :is(app-signin, app-otp, app-forgot-password) .container-fluid .auth-control:hover { border-color: rgba(255, 255, 255, .18); }
html:not(.lp-a):not(.lp-b) :is(app-signin, app-otp, app-forgot-password) .container-fluid .auth-control:focus {
  outline: 0; background: rgba(255, 255, 255, .07); border-color: var(--lp-accent); box-shadow: 0 0 0 4px rgba(99, 102, 241, .22);
}
html:not(.lp-a):not(.lp-b) :is(app-signin, app-otp, app-forgot-password) .container-fluid .auth-control:-webkit-autofill {
  -webkit-text-fill-color: var(--lp-text); -webkit-box-shadow: 0 0 0 1000px #141a2e inset; caret-color: var(--lp-text);
}
html:not(.lp-a):not(.lp-b) :is(app-signin, app-otp, app-forgot-password) .container-fluid .auth-control.is-invalid { border-color: var(--lp-danger); background-image: none; }
html:not(.lp-a):not(.lp-b) :is(app-signin, app-otp, app-forgot-password) .container-fluid .auth-page-icon {
  left: 16px; top: 14px; bottom: auto; transform: none; width: 20px; height: 20px; font-size: 20px; line-height: 20px; color: var(--lp-text-3); transition: color .15s ease;
}
html:not(.lp-a):not(.lp-b) :is(app-signin, app-otp, app-forgot-password) .container-fluid .auth-form-group:focus-within .auth-page-icon { color: var(--lp-accent-soft); }
html:not(.lp-a):not(.lp-b) :is(app-signin, app-otp, app-forgot-password) .container-fluid .invalid-feedback { display: block; margin-top: 6px; font-size: 12.5px; color: #fca5a5; }
html:not(.lp-a):not(.lp-b) :is(app-signin, app-otp, app-forgot-password) .container-fluid .alert-danger {
  margin: 0 0 14px !important; padding: 10px 14px; font-size: 13.5px; color: #fecaca;
  background: rgba(248, 113, 113, .10); border: 1px solid rgba(248, 113, 113, .30); border-radius: 12px;
}

/* ---- forgot link and the button ---- */
html:not(.lp-a):not(.lp-b) :is(app-signin, app-otp, app-forgot-password) .container-fluid form > .d-flex { justify-content: flex-end !important; padding: 0 2px !important; margin: -4px 0 18px; }
html:not(.lp-a):not(.lp-b) :is(app-signin, app-otp, app-forgot-password) .container-fluid .txt1 { font-size: 13px; color: var(--lp-text-2); text-decoration: none; transition: color .15s ease; }
html:not(.lp-a):not(.lp-b) :is(app-signin, app-otp, app-forgot-password) .container-fluid .txt1:hover { color: var(--lp-text); }
html:not(.lp-a):not(.lp-b) :is(app-signin, app-otp, app-forgot-password) .container-fluid .login100-form-btn {
  width: 100%; height: 48px !important; padding: 0 16px; font-size: 15px; font-weight: 600; letter-spacing: .01em; color: #fff;
  font-family: inherit; border: 0; border-radius: 12px;
  background: linear-gradient(180deg, #6366f1, #4f46e5);
  box-shadow: 0 10px 28px rgba(79, 70, 229, .38), inset 0 1px 0 rgba(255, 255, 255, .20);
  transition: filter .15s ease, transform .1s ease, box-shadow .15s ease;
}
html:not(.lp-a):not(.lp-b) :is(app-signin, app-otp, app-forgot-password) .container-fluid .login100-form-btn:hover:not(:disabled) { filter: brightness(1.09); }
html:not(.lp-a):not(.lp-b) :is(app-signin, app-otp, app-forgot-password) .container-fluid .login100-form-btn:active:not(:disabled) { transform: translateY(1px); }
html:not(.lp-a):not(.lp-b) :is(app-signin, app-otp, app-forgot-password) .container-fluid .login100-form-btn:focus-visible { outline: 2px solid var(--lp-accent-soft); outline-offset: 3px; }
html:not(.lp-a):not(.lp-b) :is(app-signin, app-otp, app-forgot-password) .container-fluid .login100-form-btn:disabled { color: rgba(255, 255, 255, .7); background: #3b3f8f; box-shadow: none; }
html:not(.lp-a):not(.lp-b) :is(app-signin, app-otp, app-forgot-password) .container-fluid .login100-form-btn .mat-mdc-progress-spinner { --mdc-circular-progress-active-indicator-color: #fff; }

/* ---- the one-time-code page's QR image sits on a light tile so it can still be scanned ---- */
html:not(.lp-a):not(.lp-b) app-otp .container-fluid img { border-radius: 12px; background: #fff; padding: 8px; }

/* ---- the forgot-password page's "Log in" line under the button ---- */
html:not(.lp-a):not(.lp-b) app-forgot-password .container-fluid .mt-5.text-center p { font-size: 13px; color: var(--lp-text-2) !important; }
html:not(.lp-a):not(.lp-b) app-forgot-password .container-fluid .mt-5.text-center a { color: var(--lp-accent-soft) !important; text-decoration: none; }
html:not(.lp-a):not(.lp-b) app-forgot-password .container-fluid .mt-5.text-center a:hover { color: var(--lp-text); }
html:not(.lp-a):not(.lp-b) app-forgot-password .container-fluid .mt-5.text-center { margin-top: 22px !important; }

/* ---- small screens ---- */
@media (max-width: 575px) {
  html:not(.lp-a):not(.lp-b) :is(app-signin, app-otp, app-forgot-password) .container-fluid .col-lg-4 { padding: 16px 12px; }
  html:not(.lp-a):not(.lp-b) :is(app-signin, app-otp, app-forgot-password) .container-fluid .auth-content { padding: 30px 20px 24px !important; border-radius: 16px; }
  html:not(.lp-a):not(.lp-b) :is(app-signin, app-otp, app-forgot-password) .container-fluid::before { filter: blur(24px); }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.lp-a):not(.lp-b) :is(app-signin, app-otp, app-forgot-password) .container-fluid::before { animation: none; }
}
