
:root{
  --forest-950:#16362a;--forest-900:#1e4636;--forest-800:#275b45;--forest-700:#337056;
  --forest-100:#e6f0ea;--forest-50:#f4f8f5;--earth:#9a7654;--earth-light:#efe5dc;
  --sand:#f7f4ef;--ink:#1f2d26;--muted:#6d7972;--line:#dfe6e1;
}
body{background:var(--sand);color:var(--ink)}
header{background:linear-gradient(110deg,var(--forest-950),var(--forest-800));color:#fff;min-height:64px}
header h1{color:#fff}.layout{min-height:calc(100vh - 64px)}
nav{width:248px;background:#17382b;border-right:1px solid #244d3b;padding:14px 10px;transition:width .2s}
nav button{color:#dcebe3;padding:11px 12px;border-radius:9px;margin:3px 0}
nav button:hover,nav button.active{background:#2b624a;color:#fff}
main{background:var(--sand);padding:24px}.card{border-color:var(--line);box-shadow:0 4px 14px #18392b0d}
.primary{background:var(--forest-700)}.secondary{border-color:#cbd6d0}table{border-color:var(--line)}th{background:#edf3ef}
.metric{color:var(--forest-900)}
.marlum-login{position:fixed;inset:0;z-index:99999;display:flex;background:#10291f}
.marlum-login.hidden{display:none}
.marlum-login-photo{flex:1 1 56%;position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;padding:42px;background:#10291f}
.marlum-login-photo-img{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;animation:marlumLoginCrossfade 19.5s infinite}
.marlum-login-photo-img:nth-child(1){animation-delay:0s}
.marlum-login-photo-img:nth-child(2){animation-delay:6.5s}
.marlum-login-photo-img:nth-child(3){animation-delay:13s;background-position:center top;z-index:1} /* sits above the dark overlay so this bright photo keeps its natural colour; the top fade is built into the image */
@keyframes marlumLoginCrossfade{0%{opacity:0}5%{opacity:1}31%{opacity:1}38%{opacity:0}100%{opacity:0}}
.marlum-login-photo::before{content:'';position:absolute;inset:0;background:linear-gradient(155deg,#1e4634cc 0%,#10291fd9 55%,#0a1e15ee 100%);z-index:1}
.marlum-login-photo::after{content:'';position:absolute;inset:0;background:radial-gradient(circle at 28% 22%,#4c7d6355 0,transparent 50%);z-index:1}
/* Login copy and layout follow the approved design: logo lockup + tagline at the top, three feature
   points and slide dots at the bottom, three photos rotating with a real crossfade. */
.marlum-login-top,.marlum-login-bottom{position:relative;z-index:2}
.marlum-login-lockup{display:flex;align-items:center;gap:16px}
.marlum-login-lockup .login-mark{width:48px;height:48px;font-size:23px;margin:0;border-radius:13px;flex:none}
.login-lockup-rule{width:1px;align-self:stretch;flex:none}
.login-lockup-text{display:flex;flex-direction:column;line-height:1.08}
.login-lockup-text b{font-size:30px;font-weight:800;letter-spacing:-.01em}
.login-lockup-text span{font-size:15px;font-weight:500;letter-spacing:.05em}
.marlum-login-photo .marlum-login-lockup{color:#fff}
.marlum-login-photo .login-mark{background:#fff;color:#1e4636}
.marlum-login-photo .login-lockup-rule{background:rgba(255,255,255,.55)}
.login-card .marlum-login-lockup{margin-bottom:26px}
.login-card .login-lockup-rule{background:#b4c7bb}
.login-card .login-lockup-text b{color:var(--forest-950,#10291f)}
.login-card .login-lockup-text span{color:#2f6f53}
.marlum-login-tagline{margin-top:22px;color:#fff;font-size:26px;font-weight:700;line-height:1.25}
.marlum-login-dots{display:flex;gap:9px;justify-content:center;margin-bottom:24px}
.marlum-login-dots i{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.4);animation:marlumLoginDot 19.5s infinite}
.marlum-login-dots i:nth-child(2){animation-delay:6.5s}
.marlum-login-dots i:nth-child(3){animation-delay:13s}
@keyframes marlumLoginDot{0%{background:rgba(255,255,255,.4);transform:none}5%,36%{background:#fff;transform:scale(1.25)}38%,100%{background:rgba(255,255,255,.4);transform:none}}
.marlum-login-features{display:flex;justify-content:center;align-items:stretch;color:#fff}
.marlum-login-feature{display:flex;flex-direction:column;align-items:center;gap:8px;padding:0 28px;font-size:13px;line-height:1.3;text-align:center;font-weight:500}
.marlum-login-feature+.marlum-login-feature{border-left:1px solid rgba(255,255,255,.35)}
.marlum-login-feature svg{width:30px;height:30px;stroke:#fff;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.marlum-setpw-msg{font-size:12px;line-height:1.5;margin:10px 0 0;padding:10px;border-radius:8px}
#marlumChangePw{color:#cfe3d8;font-size:11px;text-decoration:none;margin-left:10px;white-space:nowrap}
#marlumChangePw:hover{color:#fff;text-decoration:underline}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.login-card #loginUser,.login-card #loginPass{padding-left:42px!important;background-repeat:no-repeat!important;background-position:14px center!important;background-size:18px 18px!important}
.login-card #loginUser{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6f53' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='14' rx='2'/><path d='m3 7 9 6 9-6'/></svg>")!important}
.login-card #loginPass{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6f53' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='5' y='11' width='14' height='9' rx='2'/><path d='M8 11V8a4 4 0 0 1 8 0v3'/></svg>")!important}
.login-card .login-section .auth-links{align-items:center;margin:2px 0 4px}
.login-card .login-section .remember-me{display:flex;align-items:center;gap:8px;margin:0;font-size:12px;font-weight:500;color:#46554d;cursor:pointer}
.login-card .login-section .remember-me input[type=checkbox]{width:16px;height:16px;padding:0;margin:0;accent-color:#1e4636}
.login-card .password-toggle{display:flex;align-items:center;justify-content:center;padding:6px}
.login-card .password-toggle svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.login-card #authNote{border-top:1px solid #e0e8e3;padding-top:14px;margin-top:14px!important;letter-spacing:.02em}
.marlum-login-formside{flex:1 1 44%;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at 75% 20%,#315f4a 0,#1a3f30 45%,#10291f 100%);padding:20px}
.login-card{width:min(440px,94vw);background:#fff;border-radius:18px;padding:34px;box-shadow:0 24px 70px #071a1255}
.login-mark{width:58px;height:58px;border-radius:16px;background:var(--forest-800);display:grid;place-items:center;color:#fff;font-size:27px;margin-bottom:18px}
.login-card h1{margin:0 0 7px;color:var(--forest-950);font-size:25px}.login-card p{color:var(--muted);margin:0 0 22px}
.login-card label{display:block;font-size:12px;font-weight:700;color:#46554d;margin:12px 0}.login-card input{width:100%;padding:12px;border:1px solid #ccd7d0;border-radius:9px;margin-top:6px}
.login-btn{width:100%;padding:12px;border:0;border-radius:9px;background:var(--forest-800);color:#fff;font-weight:700;cursor:pointer;margin-top:8px}
.login-note{font-size:11px!important;margin-top:14px!important;text-align:center}
@media(max-width:900px){.marlum-login-photo{display:none}.marlum-login-formside{flex:1 1 100%}}
.side-toggle{position:fixed;left:14px;bottom:14px;z-index:50;border:0;background:var(--forest-900);color:#fff;border-radius:9px;padding:10px 12px;cursor:pointer}
.mobile-menu{display:none}.marlum-dash-head{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin-bottom:18px}
.marlum-dash-head h2{margin-bottom:5px}.live-pill{font-size:12px;padding:7px 10px;border-radius:999px;background:var(--forest-100);color:var(--forest-900);font-weight:700}
.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.metric-card{padding:18px;background:#17382b;color:#fff;border:1px solid #17382b;border-radius:14px}.metric-card .metric{font-size:25px;margin-top:7px;color:#fff}.metric-card .label{color:#c9d9d0}.metric-card .metric-sub{color:#a9c2b5}
.metric-sub{font-size:11px;color:var(--muted);margin-top:5px}.mini-bar{height:7px;border-radius:20px;background:#e8eee9;overflow:hidden;margin-top:10px}.mini-bar>span{display:block;height:100%;background:var(--forest-700)}
.dash-two{display:grid;grid-template-columns:1.4fr 1fr;gap:14px;margin-top:14px}.action-list{display:grid;gap:9px}
.action-item{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px solid #edf1ee}.action-item:last-child{border-bottom:0}
.status-dot{width:8px;height:8px;border-radius:50%;background:var(--forest-700);display:inline-block;margin-right:8px}
.employee-form-section{grid-column:1/-1;border-top:1px solid var(--line);padding-top:12px;margin-top:4px}.employee-form-section h4{margin:4px 0 10px;color:var(--forest-900)}
.form-help{font-size:11px;color:var(--muted);margin-top:4px}.schema-card code{font-size:11px}
@media(max-width:900px){.metric-grid{grid-template-columns:repeat(2,1fr)}.dash-two{grid-template-columns:1fr}}
@media(max-width:650px){
  nav{position:fixed;top:64px;bottom:0;left:-270px;width:270px;z-index:100;transition:left .2s;overflow:auto}
  nav.open{left:0}.mobile-menu{display:block;position:fixed;top:12px;left:12px;z-index:101;border:0;border-radius:8px;padding:9px 11px;background:#fff;color:var(--forest-900)}
  header{padding-left:62px}.metric-grid{grid-template-columns:1fr}.marlum-dash-head{align-items:flex-start;flex-direction:column}
}
