:root{--rmd-maroon:#661f2c;--rmd-maroon-deep:#43151e;--rmd-cream:#f4ede2;--rmd-gold:#b7a06b;--rmd-ink:#292525;--rmd-muted:#6c6662;--rmd-line:#ddd2c3;--rmd-card:#fffdf9}*{box-sizing:border-box}html,body{min-height:100%;margin:0}.rmd-portal-body{font-family:Inter,Segoe UI,Arial,sans-serif;background:#efe9df;color:var(--rmd-ink)}.rmd-portal-shell{min-height:100vh;display:grid;grid-template-columns:minmax(420px,1.08fr) minmax(420px,.92fr)}.rmd-portal-brand{position:relative;display:flex;flex-direction:column;justify-content:space-between;padding:8vh 8vw 6vh;color:#fff;background:radial-gradient(circle at 75% 20%,rgba(183,160,107,.25),transparent 34%),linear-gradient(145deg,var(--rmd-maroon),var(--rmd-maroon-deep) 72%);overflow:hidden}.rmd-portal-brand:after{content:"";position:absolute;right:-15%;bottom:-24%;width:70%;aspect-ratio:1;border-radius:50%;border:1px solid rgba(255,255,255,.08);box-shadow:0 0 0 80px rgba(255,255,255,.025),0 0 0 160px rgba(255,255,255,.02)}.rmd-portal-logo{display:block;max-width:290px;max-height:112px;object-fit:contain;object-position:left center;margin-bottom:46px}.rmd-portal-wordmark{display:inline-flex;flex-direction:column;border-left:3px solid var(--rmd-gold);padding-left:18px;margin-bottom:52px;letter-spacing:.18em}.rmd-portal-wordmark span{font-family:Georgia,serif;font-size:29px;letter-spacing:.14em}.rmd-portal-wordmark small{font-size:9px;letter-spacing:.32em;margin-top:6px;color:#eadfc9}.rmd-portal-kicker{text-transform:uppercase;letter-spacing:.2em;font-size:11px;font-weight:700;color:#dbc79c;margin:0 0 16px}.rmd-portal-brand h1{font-family:Georgia,serif;font-size:clamp(38px,4.2vw,68px);line-height:1.02;font-weight:500;max-width:730px;margin:0}.rmd-portal-intro{font-size:17px;line-height:1.7;color:#f1e9e3;max-width:600px;margin-top:28px}.rmd-portal-principles{position:relative;z-index:2;display:flex;align-items:center;gap:16px;text-transform:uppercase;letter-spacing:.16em;font-size:10px;color:#eadfc9}.rmd-portal-principles i{width:28px;height:1px;background:rgba(234,223,201,.45)}.rmd-portal-login{display:flex;align-items:center;justify-content:center;padding:50px;background:linear-gradient(180deg,#faf8f4,#efe8dd)}.rmd-login-card{width:min(470px,100%);background:var(--rmd-card);border:1px solid var(--rmd-line);border-radius:22px;padding:42px;box-shadow:0 22px 70px rgba(67,21,30,.11)}.rmd-login-head>p{color:var(--rmd-maroon);text-transform:uppercase;font-size:10px;font-weight:800;letter-spacing:.2em;margin:0 0 8px}.rmd-login-head h2{font-family:Georgia,serif;font-size:38px;font-weight:500;margin:0 0 8px;color:var(--rmd-maroon-deep)}.rmd-login-head>span{display:block;color:var(--rmd-muted);font-size:14px;margin-bottom:28px}.rmd-login-alert{padding:12px 14px;border-radius:10px;background:#f8e8e8;border:1px solid #e8bdbd;color:#7c222c;font-size:13px;margin-bottom:20px}.rmd-login-card form>label{display:block;font-size:12px;font-weight:700;margin:18px 0 7px;color:#4d4643}.rmd-login-card input[type=text],.rmd-login-card input[type=password]{width:100%;height:50px;border:1px solid #cfc4b4;border-radius:10px;padding:0 14px;background:#fff;font-size:15px;outline:none;transition:.15s}.rmd-login-card input[type=text]:focus,.rmd-login-card input[type=password]:focus{border-color:var(--rmd-gold);box-shadow:0 0 0 3px rgba(183,160,107,.16)}.rmd-login-row{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:17px 0 23px;font-size:12px}.rmd-login-row a,.rmd-powered{color:var(--rmd-maroon);text-decoration:none}.rmd-remember{display:flex!important;align-items:center;gap:6px;margin:0!important;font-weight:400!important}.rmd-login-card button,.rmd-portal-button{display:inline-flex;width:100%;height:50px;align-items:center;justify-content:center;border:0;border-radius:10px;background:var(--rmd-maroon);color:#fff;font-size:14px;font-weight:800;letter-spacing:.02em;cursor:pointer;text-decoration:none}.rmd-login-card button:hover,.rmd-portal-button:hover{background:var(--rmd-maroon-deep)}.rmd-portal-security{display:flex;flex-direction:column;gap:4px;border-top:1px solid #e5ddd2;margin-top:27px;padding-top:21px;font-size:11px;color:var(--rmd-muted);line-height:1.5}.rmd-portal-security strong{color:#4f4844;font-size:12px}.rmd-powered{display:block;text-align:center;margin-top:25px;font-size:11px;letter-spacing:.05em}.rmd-portal-single{grid-template-columns:1fr}.rmd-portal-single .rmd-portal-login{min-height:100vh}.rmd-portal-single .rmd-portal-wordmark{color:var(--rmd-maroon);margin-bottom:28px}.rmd-portal-single h1{font-family:Georgia,serif;color:var(--rmd-maroon);font-size:36px;margin:0 0 14px}.rmd-portal-single p{color:var(--rmd-muted);line-height:1.6;margin-bottom:26px}@media(max-width:900px){.rmd-portal-shell{grid-template-columns:1fr}.rmd-portal-brand{min-height:44vh;padding:55px 42px 40px}.rmd-portal-brand h1{font-size:44px}.rmd-portal-principles{margin-top:40px}.rmd-portal-login{padding:35px 20px 55px}.rmd-login-card{padding:32px 26px}}@media(max-width:520px){.rmd-portal-brand{padding:42px 25px 34px}.rmd-portal-brand h1{font-size:36px}.rmd-portal-intro{font-size:15px}.rmd-portal-principles{flex-wrap:wrap;gap:9px}.rmd-portal-principles i{width:12px}.rmd-login-row{align-items:flex-start;flex-direction:column}.rmd-login-card{border-radius:17px}}

/* Riversmead IMS v0.12.0 brand-asset handling */
.rmd-portal-logo{width:190px;max-width:min(58vw,210px);height:auto;max-height:none;object-fit:contain;object-position:center;display:block;margin:0 0 38px;filter:drop-shadow(0 5px 12px rgba(31,12,17,.16))}.rmd-portal-brand>div:first-child{position:relative;z-index:2}.rmd-portal-kicker{letter-spacing:.18em}.rmd-login-card{position:relative}.rmd-powered{font-weight:700}
@media(max-width:900px){.rmd-portal-logo{width:160px;margin-bottom:28px}}
@media(max-width:520px){.rmd-portal-logo{width:142px;margin-bottom:24px}}
