/* Frosted-glass login over a locally hosted CRM wallpaper. */
:root{color-scheme:light;--ink:#142f42;--muted:#435e70}
*{box-sizing:border-box}
body.crm-login{margin:0;min-width:280px;background:#315574;color:var(--ink);font-family:'DM Sans',sans-serif;-webkit-font-smoothing:antialiased}
button,input{font:inherit}button{cursor:pointer}button,input{-webkit-tap-highlight-color:transparent}
svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.crm-wallpaper{position:fixed;inset:0;z-index:-2;background:url('../images/crm-login-wallpaper.png') center center/cover no-repeat;pointer-events:none}
.crm-wallpaper:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#0e293a20,transparent 45%,#071e3240)}
.ambient-light{position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 45% 35%,#d9f3ff18,transparent 60%);animation:ambient-drift 14s ease-in-out infinite alternate}
.login-shell{min-height:100vh;min-height:100svh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:46px 20px 66px;position:relative;isolation:isolate}
.glass-card{width:390px;max-width:100%;position:relative;padding:30px 36px 28px;border:1px solid #effaffaa;border-radius:18px;background:linear-gradient(135deg,#edf8ff65,#d6edfa38 48%,#d5eaf55e);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);box-shadow:0 20px 70px #071e3b40,inset 0 1px 0 #ffffff99,inset 0 -1px 0 #ffffff40;animation:card-enter .8s cubic-bezier(.2,.8,.2,1) both}
.glass-card:before{content:'';position:absolute;inset:0;pointer-events:none;border-radius:inherit;background:linear-gradient(120deg,#ffffff22,transparent 40%,#ffffff10)}
.card-brand{display:flex;align-items:center;justify-content:center;gap:8px;font-size:10px;font-weight:700;letter-spacing:2px;color:#24475d;margin-bottom:19px}.brand-symbol{width:26px;height:26px;border:1px solid #193d5350;display:grid;place-items:center;border-radius:7px;background:#e7f4ff25}.brand-symbol svg{width:17px;height:17px}.brand-divider{color:#436b8199;margin:0 3px}
#login-heading{text-align:center;font-family:Manrope,sans-serif;font-size:30px;font-weight:800;letter-spacing:-1px;margin:0 0 8px}.form-description{text-align:center;font-size:11px;color:var(--muted);line-height:1.7;margin:0 0 32px}
.field-group{margin-bottom:24px}label{display:block;font-size:12px;font-weight:500;margin-bottom:0}.input-wrap{position:relative;border-bottom:1px solid #234a638c;transition:border-color .2s,box-shadow .2s}.input-wrap input{width:100%;height:40px;border:0;outline:none;border-radius:0;padding:0 34px 0 0;background:transparent;color:#102c3e;font-size:12px}.input-wrap input::placeholder{color:#3f5f7599;font-size:11px}.input-wrap:focus-within{border-color:#102f49;box-shadow:0 2px 0 #102f4933}.input-icon{position:absolute;right:5px;top:11px;width:16px;height:16px;color:#183b50;pointer-events:none}.field-group:has(#password) .input-icon{display:none}
.password-toggle{position:absolute;top:2px;right:-7px;width:36px;height:36px;border:0;border-radius:7px;background:transparent;color:#183b50;display:grid;place-items:center;transition:background .2s}.password-toggle:hover{background:#ffffff40}.password-toggle svg{width:17px;height:17px}.eye-slash{display:none}.password-toggle[aria-pressed=true] .eye-slash{display:block}
.sign-in{position:relative;overflow:hidden;width:100%;height:42px;display:flex;align-items:center;justify-content:center;gap:12px;border:1px solid #17364b;border-radius:6px;background:linear-gradient(120deg,#1d4057,#112d42);color:#f1f8ff;font-size:12px;font-weight:600;margin-top:8px;box-shadow:0 5px 16px #152f4720;transition:transform .2s,box-shadow .2s}.sign-in svg{width:15px;height:15px;transition:transform .2s}.sign-in:hover{transform:translateY(-2px);box-shadow:0 8px 20px #152f4735}.sign-in:hover svg{transform:translateX(3px)}.sign-in:active{transform:translateY(0)}.sign-in:before{content:'';position:absolute;inset:0;background:linear-gradient(110deg,transparent 25%,#ffffff16 50%,transparent 75%);transform:translateX(-120%);transition:transform .7s}.sign-in:hover:before{transform:translateX(120%)}.sign-in:disabled{cursor:wait;opacity:.8;transform:none}.sign-in.is-loading svg{display:none}.sign-in.is-loading:after{content:'';width:14px;height:14px;border:2px solid #ffffff55;border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}
button:focus-visible{outline:2px solid #173c59;outline-offset:4px}.help-note{text-align:center;margin:21px 0 0;font-size:10px;line-height:1.7;color:#2e5067}.page-footer{position:absolute;bottom:22px;font-size:10px;letter-spacing:.2px;color:#e4f0fbcc;text-align:center;text-shadow:0 1px 8px #072135}
.login-autofill-decoy{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;left:-9999px}.login-error{position:relative;margin-bottom:20px;padding:10px 12px;font-size:11px;line-height:1.6;background:#fff0ebdc;border:1px solid #b8615066;border-radius:6px;color:#863b2b}.caps-warning{font-size:10px;color:#793d18;padding-top:7px}.captcha-section{margin-bottom:20px}.login-captcha-width{width:100%;min-height:78px}.g-recaptcha{width:304px;transform-origin:top left}.captcha-status{color:#863b2b;font-size:11px;line-height:1.6}.captcha-status:not(:empty){margin-bottom:16px}
.rc-anchor-light,.login-captcha-width,.g-recaptcha{background:#d5e5ef}
@keyframes card-enter{from{opacity:0;transform:translateY(18px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes ambient-drift{from{opacity:.5;transform:translateX(-2%)}to{opacity:1;transform:translateX(2%)}}@keyframes spin{to{transform:rotate(360deg)}}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.glass-card{background:#d4e6f1ef}}
@media(max-width:600px){.login-shell{padding:38px 22px 64px}.glass-card{width:360px;padding:30px 28px 26px;border-radius:16px;background:linear-gradient(135deg,#edf8ff9e,#d6edfa66)}.crm-wallpaper{background-position:32% center}.card-brand{font-size:9px}#login-heading{font-size:28px}.form-description{margin-bottom:28px}.page-footer{font-size:9px;bottom:20px}}
@media(max-height:540px){.login-shell{padding-top:28px;padding-bottom:56px}.page-footer{bottom:15px}.glass-card{padding-top:24px;padding-bottom:24px}}
/* Gentle motion keeps the form steady while giving the scene depth. */
.crm-wallpaper{animation:wallpaper-breathe 28s ease-in-out infinite alternate;transform-origin:50% 45%}
.light-particles{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:-1}
.light-particles i{position:absolute;left:12%;bottom:-20px;width:4px;height:4px;border-radius:50%;background:#e1f5ff;box-shadow:0 0 14px 3px #bde5ff44;opacity:0;animation:particle-rise 20s linear infinite}
.light-particles i:nth-child(2){left:27%;width:3px;height:3px;animation-delay:-12s;animation-duration:26s}
.light-particles i:nth-child(3){left:42%;animation-delay:-6s;animation-duration:24s}
.light-particles i:nth-child(4){left:64%;width:3px;height:3px;animation-delay:-17s;animation-duration:28s}
.light-particles i:nth-child(5){left:78%;animation-delay:-9s;animation-duration:22s}
.light-particles i:nth-child(6){left:90%;width:2px;height:2px;animation-delay:-20s;animation-duration:30s}
.glass-card{transition:border-color .35s,box-shadow .35s}
.glass-card:before{background:linear-gradient(115deg,transparent 20%,#ffffff16 45%,#ffffff30 50%,#ffffff16 55%,transparent 80%);background-size:250% 100%;animation:glass-shine 16s ease-in-out infinite}
.glass-card:focus-within{border-color:#f5fcff;box-shadow:0 24px 75px #071e3b50,0 0 26px #c8edff18,inset 0 1px 0 #ffffff99}
#login-heading,.form-description,.field-group,.sign-in,.help-note{animation:content-enter .65s ease both}
#login-heading{animation-delay:.15s}.form-description{animation-delay:.22s}.field-group{animation-delay:.3s}.field-group+.field-group{animation-delay:.4s}.sign-in{animation-delay:.48s}.help-note{animation-delay:.55s}
.input-wrap:after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:2px;background:linear-gradient(90deg,#163e59,#5489ab,#163e59);transform:scaleX(0);transform-origin:center;transition:transform .3s ease;pointer-events:none}
.input-wrap:focus-within:after{transform:scaleX(1)}
.input-icon,.password-toggle svg{transition:color .25s,transform .25s}
.input-wrap:focus-within .input-icon{transform:translateY(-2px);color:#0e3049}
.password-toggle:hover svg{transform:scale(1.12)}
@media(hover:hover) and (pointer:fine){.glass-card:hover{border-color:#f5fcff;box-shadow:0 24px 80px #071e3b50,inset 0 1px 0 #ffffffbb}}
@keyframes wallpaper-breathe{from{transform:scale(1)}to{transform:scale(1.035)}}
@keyframes particle-rise{0%{opacity:0;transform:translate3d(0,0,0)}12%{opacity:.45}80%{opacity:.25}100%{opacity:0;transform:translate3d(28px,-105vh,0)}}
@keyframes glass-shine{0%,25%{background-position:100% 0}65%,100%{background-position:0 0}}
@keyframes content-enter{from{opacity:0;translate:0 9px}to{opacity:1;translate:0 0}}
@media(max-width:600px){.light-particles i:nth-child(3),.light-particles i:nth-child(4){display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}.light-particles{display:none}}
