/* Lightfall: decorative background; the login remains a native PHP form. */
body.login-page[data-background-style]:not([data-background-style="classic"]){background:var(--login-effect-bg,#0f70ff);isolation:isolate}
#loginLightfall{position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none;background:var(--login-effect-bg,#0f70ff)}
#loginLightfall .lightfall-container{position:relative;width:100%;height:100%;overflow:hidden}
#loginLightfall .lightfall-canvas{position:absolute;inset:0;display:block;width:100%;height:100%}
body.login-page[data-background-style]:not([data-background-style="classic"]) .lp-layout{background:transparent}
body.login-page[data-background-style]:not([data-background-style="classic"]) .lp-layout .lp-hero{background-color:transparent;background-image:linear-gradient(115deg,color-mix(in srgb,var(--lp-primary) 65%,transparent),color-mix(in srgb,var(--lp-secondary) 30%,transparent)),var(--lp-hero-image);color:var(--lp-hero-text,#fff)}
body.login-page[data-background-style]:not([data-background-style="classic"]) .lp-hero:before,body.login-page[data-background-style]:not([data-background-style="classic"]) .lp-hero:after,body.login-page[data-background-style]:not([data-background-style="classic"]) .lp-orb{display:none}
body.login-page[data-background-style]:not([data-background-style="classic"]) .lp-layout .lp-form-side{background-color:transparent;background-image:linear-gradient(145deg,var(--lp-form),var(--lp-form-2)),var(--lp-form-image)}
body.login-page[data-background-style]:not([data-background-style="classic"]) .lp-card{background:var(--lp-panel,#fff);box-shadow:0 24px 70px #031a5466;border:1px solid #ffffff88;position:relative;z-index:1}
body.login-page[data-background-style]:not([data-background-style="classic"]) .lp-footer{color:#fff;text-shadow:0 1px 5px #05235b}
body.login-page[data-background-style]:not([data-background-style="classic"]) .lp-hero-content{position:relative;text-shadow:0 2px 20px #05235b80}
@media(max-width:720px){body.login-page[data-background-style]:not([data-background-style="classic"]) .lp-layout .lp-form-side{padding-top:max(30px,env(safe-area-inset-top));padding-bottom:max(56px,env(safe-area-inset-bottom));background-image:linear-gradient(160deg,var(--lp-form),var(--lp-form-2)),var(--lp-form-image)}body.login-page[data-background-style]:not([data-background-style="classic"]) .lp-card{width:min(100%,460px)}}
@media(prefers-reduced-motion:reduce){#loginLightfall canvas{display:none}}

#loginLightfall[hidden]{display:none}
body.login-page[data-background-style="magicrings"] .lp-card .lp-description,body.login-page[data-background-style="magicrings"] .lp-card-foot,body.login-page[data-background-style="magicrings"] .lp-options{color:color-mix(in srgb,var(--lp-text) 82%,transparent)}
body.login-page[data-background-style="magicrings"] .lp-card-foot strong{color:var(--lp-text)}
body.login-page[data-background-style="magicrings"] .lp-input::placeholder{color:color-mix(in srgb,var(--lp-text) 65%,transparent)}
body.login-page[data-background-style="magicrings"] .lp-input:focus{background:var(--lp-input-bg);color:var(--lp-text)}
body.login-page[data-background-style="magicrings"] .lp-input-wrap svg{stroke:var(--lp-text)}

.magic-rings {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.magic-rings__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Only the fill is transparent; labels, icons and form controls stay readable. */
body.login-page .lp-hero h2 em{color:var(--lp-accent-ink,var(--lp-accent))}
body.login-page .lp-logo-fallback{color:var(--lp-primary-ink,var(--lp-primary))}
body.login-page .lp-card-foot strong{color:var(--lp-secondary-ink,var(--lp-secondary))}
body.login-page[data-background-style="magicrings"] .lp-card-foot strong{color:var(--lp-text)}
body.login-page .lp-input:focus{background:var(--lp-input-bg);color:var(--lp-text)}
body.login-page .lp-layout .lp-hero,body.login-page .lp-layout .lp-form-side{background-color:transparent}
