
/* RM SIGN signature collection — isolated to login and registration */
html:has(body.rm-auth-premium){background:#080f19}
body.rm-auth-premium{min-height:100svh;box-sizing:border-box;margin:0;padding:38px 20px;display:flex;justify-content:center;align-items:center;background:radial-gradient(ellipse 50% 75% at 7% 12%,#1a344c 0%,transparent 72%),radial-gradient(ellipse 60% 70% at 95% 94%,#142b41 0%,transparent 68%),#080f19;color:#eef3f8;font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif}
body.rm-auth-premium::before{content:'';position:fixed;inset:0;pointer-events:none;border:3px solid transparent;border-image:linear-gradient(125deg,#366c8d,#172c45 38%,#223d56 70%,#4794aa) 1;opacity:.65}
body.rm-auth-premium .authcard{box-sizing:border-box;position:relative;display:grid;grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr);width:min(1040px,100%);max-width:none;margin:0;padding:0;overflow:hidden;text-align:left;border:1px solid #31485c;border-radius:24px;background:#111e2b;box-shadow:0 30px 90px #0009,0 0 40px #397ba321;color:#f0f5fb}
body.rm-auth-premium .rm-hero{min-height:535px;padding:52px 42px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden;background:radial-gradient(circle at 25% 23%,#284962 0%,transparent 55%),linear-gradient(145deg,#142c42,#081421 80%);border-right:1px solid #2b4358}
body.rm-auth-premium .rm-hero::after{content:'';position:absolute;width:330px;height:330px;border:1px solid #68b4d338;border-radius:50%;bottom:-170px;right:-130px;box-shadow:0 0 0 45px #69a8c40a,0 0 0 100px #69a8c408;pointer-events:none}
body.rm-auth-premium .rm-logo{display:block;width:168px;height:168px;object-fit:contain;border-radius:22px;filter:drop-shadow(0 12px 28px #0006)}
body.rm-auth-premium .rm-kicker{font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:#8fc7dd;font-weight:800}
body.rm-auth-premium .rm-hero h2{font-size:clamp(32px,4vw,46px);line-height:1.08;letter-spacing:-.055em;color:#fff;margin:12px 0 16px}
body.rm-auth-premium .rm-hero p{color:#b9cddd;font-size:15px;line-height:1.7;max-width:310px}
body.rm-auth-premium .rm-hero-footer{color:#87a5ba;font-size:12px;letter-spacing:.02em}
body.rm-auth-premium .rm-auth-form{box-sizing:border-box;padding:55px 50px;display:flex;flex-direction:column;justify-content:center;min-width:0}
body.rm-auth-premium .rm-auth-form h1{font-size:clamp(26px,3vw,34px);color:#fff;letter-spacing:-.045em;margin:0 0 8px;font-weight:780}
body.rm-auth-premium .rm-auth-form>p{color:#a7bacb;line-height:1.6;margin:0 0 19px}
body.rm-auth-premium .rm-auth-form form{text-align:left}
body.rm-auth-premium .rm-auth-form label{display:block;color:#dce8f1;font-size:13px;font-weight:650;margin:14px 0 5px}
body.rm-auth-premium .rm-auth-form label small{color:#a2b7c8}
body.rm-auth-premium .rm-auth-form input:not([type=checkbox]){width:100%;box-sizing:border-box;min-height:47px;margin-top:7px;padding:11px 13px;border-radius:10px;background:#0b1723;border:1px solid #3b5265;color:#fff;outline:0}
body.rm-auth-premium .rm-auth-form input:not([type=checkbox]):focus{border-color:#72b6d2;box-shadow:0 0 0 3px #6aafcb24}
body.rm-auth-premium .rm-auth-form .btn.primary{width:100%;min-height:48px;margin-top:21px;border:1px solid #5b9fbd;border-radius:10px;background:linear-gradient(105deg,#275b7e,#367fa1);color:white;font-weight:750;box-shadow:0 8px 20px #0004}
body.rm-auth-premium .rm-auth-form .btn.primary:hover{filter:brightness(1.13)}
body.rm-auth-premium .rm-auth-form .btn:not(.primary){border:1px solid #446075;color:#d6eaf5;background:#1a3041}
body.rm-auth-premium .rm-auth-form a{color:#88c8e4;text-decoration:none}
body.rm-auth-premium .rm-auth-form a:hover{color:#c2edff;text-decoration:underline}
body.rm-auth-premium .rm-auth-form .regterms{display:flex;align-items:flex-start;gap:9px;line-height:1.5}
body.rm-auth-premium .rm-auth-form .regterms input{flex:none;margin-top:4px;accent-color:#3986ab}
body.rm-auth-premium .rm-auth-form .notice{text-align:left;border-radius:9px}
body.rm-auth-premium .rm-auth-form .notice.success{background:#153d36;color:#c6f3e5}
body.rm-auth-premium .rm-auth-form .notice.danger{background:#46202c;color:#ffd8df}
body.rm-auth-premium .registercard .rm-auth-form{padding-top:35px;padding-bottom:35px}
body.rm-auth-premium .registercard .rm-hero{min-height:760px}
@media(max-width:760px){body.rm-auth-premium{padding:18px 12px;align-items:flex-start}body.rm-auth-premium .authcard{grid-template-columns:1fr;max-width:510px}body.rm-auth-premium .rm-hero,body.rm-auth-premium .registercard .rm-hero{min-height:0;padding:24px 26px;display:flex;flex-direction:row;align-items:center;gap:18px;border-right:0;border-bottom:1px solid #2b4358}body.rm-auth-premium .rm-hero h2,body.rm-auth-premium .rm-hero p,body.rm-auth-premium .rm-hero-footer{display:none}body.rm-auth-premium .rm-logo{width:84px;height:84px}body.rm-auth-premium .rm-auth-form,body.rm-auth-premium .registercard .rm-auth-form{padding:28px 25px 32px}}
@media(max-width:390px){body.rm-auth-premium .rm-hero{padding:18px}body.rm-auth-premium .rm-auth-form{padding:23px 18px}}

/* Critical fallbacks: ensure no enormous logo or tiny auth card even if legacy CSS wins */
html body.rm-auth-premium{display:flex!important;align-items:center!important;justify-content:center!important;min-height:100svh!important;padding:28px 16px!important;background:radial-gradient(circle at 10% 15%,#1b3548 0%,transparent 46%),#08111d!important}
html body.rm-auth-premium main.authcard{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;width:min(980px,100%)!important;max-width:980px!important;min-width:0!important;margin:0 auto!important;padding:0!important;overflow:hidden!important;text-align:left!important;background:#111e2b!important;border-radius:22px!important}
html body.rm-auth-premium .rm-hero{display:flex!important;min-width:0!important;box-sizing:border-box!important}
html body.rm-auth-premium .rm-logo{display:block!important;width:140px!important;height:140px!important;max-width:100%!important;object-fit:contain!important;margin:0 0 16px!important}
html body.rm-auth-premium .rm-auth-form{min-width:0!important;padding:44px 38px!important;box-sizing:border-box!important}
html body.rm-auth-premium .rm-auth-form input:not([type=checkbox]){width:100%!important;max-width:100%!important}
html body.rm-auth-premium .rm-auth-form .btn.primary{width:100%!important}
@media(max-width:760px){html body.rm-auth-premium main.authcard{grid-template-columns:minmax(0,1fr)!important;max-width:510px!important}html body.rm-auth-premium .rm-hero{min-height:0!important;padding:20px 25px!important}html body.rm-auth-premium .rm-logo{width:78px!important;height:78px!important;margin:0!important}html body.rm-auth-premium .rm-auth-form{padding:27px 24px!important}}
@media(max-width:390px){html body.rm-auth-premium .rm-auth-form{padding:23px 18px!important}}

.rm-auth-form .rm-backnav{margin:0 0 22px;text-align:left}.rm-auth-form .rm-backnav a{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:650;letter-spacing:.01em;color:#a9c4d5;text-decoration:none;padding:8px 12px;border:1px solid #355068;border-radius:999px;background:#152b3b;transition:background .2s,color .2s}.rm-auth-form .rm-backnav a:hover{color:#fff;background:#24465b}.rm-auth-form .rm-backnav a:focus-visible{outline:2px solid #8ad0e5;outline-offset:3px}

/* RM SIGN — blanco limpio; mantiene estructura y dimensiones */
html:has(body.rm-auth-premium){background:#fff!important}
body.rm-auth-premium{background:#fff!important;color:#233545!important}
body.rm-auth-premium::before{opacity:0!important}
body.rm-auth-premium .authcard{background:#fff!important;border:1px solid #e1e7ec!important;box-shadow:0 18px 55px #152e4312,0 2px 10px #152e4308!important;color:#233545!important}
body.rm-auth-premium .rm-hero{background:#fff!important;border-right:1px solid #e5ebef!important;color:#233545!important}
body.rm-auth-premium .rm-hero::after{opacity:0!important}
body.rm-auth-premium .rm-logo{width:92px!important;height:92px!important;max-width:92px!important;max-height:92px!important;object-fit:contain!important;border-radius:13px!important;filter:none!important}
body.rm-auth-premium .rm-hero h2{color:#17364c!important}
body.rm-auth-premium .rm-hero p{color:#60788a!important}
body.rm-auth-premium .rm-kicker{color:#387c9c!important}
body.rm-auth-premium .rm-hero-footer{color:#698193!important}
body.rm-auth-premium .rm-auth-form{background:#fff!important;color:#233545!important}
body.rm-auth-premium .rm-auth-form h1{color:#17364c!important}
body.rm-auth-premium .rm-auth-form>p{color:#60788a!important}
body.rm-auth-premium .rm-auth-form label{color:#294a5e!important}
body.rm-auth-premium .rm-auth-form label small{color:#69869a!important}
body.rm-auth-premium .rm-auth-form input:not([type=checkbox]){background:#fff!important;color:#19364b!important;border:1px solid #ccd8e0!important;box-shadow:none!important}
body.rm-auth-premium .rm-auth-form input:not([type=checkbox]):focus{border-color:#3981a4!important;box-shadow:0 0 0 3px #63acc72c!important}
body.rm-auth-premium .rm-auth-form .btn.primary{background:#286587!important;border-color:#286587!important;color:#fff!important;box-shadow:none!important}
body.rm-auth-premium .rm-auth-form .btn:not(.primary){background:#f5f8fa!important;color:#2b5a74!important;border-color:#d6e2e9!important}
body.rm-auth-premium .rm-auth-form a{color:#226e95!important}
body.rm-auth-premium .rm-auth-form a:hover{color:#124e70!important}
body.rm-auth-premium .rm-auth-form .rm-backnav a{color:#2c617d!important;background:#f5f8fa!important;border-color:#dbe5eb!important}
body.rm-auth-premium .rm-auth-form .rm-backnav a:hover{background:#edf3f6!important}
@media(max-width:760px){body.rm-auth-premium{padding:16px 12px!important}body.rm-auth-premium .rm-logo{width:72px!important;height:72px!important;max-width:72px!important;max-height:72px!important}body.rm-auth-premium .rm-hero{min-height:0!important;border-right:0!important;border-bottom:1px solid #e5ebef!important}body.rm-auth-premium .authcard{border-radius:18px!important}}

/* Unified auxiliary authentication screens */
body.rm-auth-premium .rm-auth-form .notice{margin:18px 0}body.rm-auth-premium .rm-auth-form a{color:#236c90}body.rm-auth-premium .rm-auth-form .btn.primary{background:#286a8f;color:#fff}body.rm-auth-premium .rm-auth-form form{max-width:100%}

/* Tamaño único y prioritario del logo en todas las pantallas de acceso */
html body.rm-auth-premium .rm-hero img.rm-logo{display:block!important;position:static!important;width:92px!important;height:92px!important;min-width:92px!important;min-height:92px!important;max-width:92px!important;max-height:92px!important;object-fit:contain!important;flex:none!important}
@media(max-width:760px){html body.rm-auth-premium .rm-hero img.rm-logo{width:72px!important;height:72px!important;min-width:72px!important;min-height:72px!important;max-width:72px!important;max-height:72px!important}}
