:root{--login-pink:#f4dce5;--login-ink:#806673;--login-line:#e6bfce}#login,#login *{box-sizing:border-box}body:has(#login:not([hidden]):not(.hidden)){margin:0;background:#fffdfd;color:var(--login-ink);font-family:'MH Serif Note',Georgia,serif}.login-preview-label{position:absolute;top:18px;left:28px;font-size:13px;color:#a58b97}#login.login-screen{min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:58px 52px;background:#fffdfd}.mh-login-layout{width:100%;max-width:1130px;display:grid;grid-template-columns:420px minmax(0,1fr);align-items:center;gap:90px}#login .login-card{width:100%;padding:36px 32px 32px;border:14px solid transparent;background:linear-gradient(#fff,#fff) padding-box,linear-gradient(90deg,#e9b4c377 50%,transparent 50%) 0 0/18px 18px border-box,linear-gradient(#e9b4c377 50%,transparent 50%) 0 0/18px 18px border-box,#fff;border-radius:22px;box-shadow:none;text-align:left}#login .brand-mark{font-family:Fraunces,Georgia,serif;font-size:47px;color:#c087a0;text-align:center;font-weight:600;letter-spacing:0;line-height:1.2;margin:0 0 22px}#login .brand-mark span{font-weight:400;padding:0 3px}#login h1{font-family:'MH Lora',Georgia,serif;font-size:23px;font-weight:400;line-height:1.4;margin:0 0 28px;text-align:center;color:#806673}#login label{display:block;font-size:17px;margin:0 0 7px}#login input:not([type=range]):not([type=file]){width:100%;font:18px 'MH Serif Note',Georgia,serif;color:#695662;background:#fff;border:1px solid var(--login-line);border-radius:8px;padding:12px 13px;min-height:47px;margin:0 0 19px}#login input:focus-visible,#login button:focus-visible{outline:2px solid #bd829c;outline-offset:3px}.mh-password-field{position:relative}.mh-password-field input{padding-right:46px!important}.mh-password-field button{position:absolute;right:10px;top:10px;width:28px;height:28px;padding:3px;background:none;border:0;color:#9c7c8b;cursor:pointer}.mh-password-field svg{width:22px;height:22px}#login #mhForgotBtn{display:block;margin:-5px 0 24px auto;border:0;background:none;color:#967087;padding:0;font:16px 'MH Serif Note',Georgia,serif;cursor:pointer;text-decoration:underline;text-underline-offset:3px}#login button.primary{width:100%;background:#d6a4b9;color:#4c3943;border:0;border-radius:8px;padding:12px 18px;font:600 19px 'MH Serif Note',Georgia,serif;cursor:pointer}#login output{display:block;font-size:15px;line-height:1.4;margin-top:12px}.mh-login-photo{margin:0;min-width:0;display:flex;flex-direction:column;align-items:center;gap:18px}.mh-login-photo-frame{position:relative;width:100%;height:530px;max-width:100%;min-width:220px;min-height:240px;border:1px solid #eedee5;border-radius:18px;background:#fbf5f8;touch-action:none}.mh-login-photo-viewport{position:absolute;inset:0;overflow:hidden;border-radius:17px;display:grid;place-items:center}.mh-login-photo-viewport img{position:absolute;width:100%;height:100%;object-fit:contain;user-select:none;pointer-events:none;transform-origin:center}.mh-login-photo-viewport .mh-photo-empty{text-align:center;padding:28px;color:#ae8e9e;line-height:1.5}.mh-photo-empty svg{width:48px;height:48px;display:block;margin:0 auto 14px}.mh-photo-empty strong{display:block;font:400 20px 'MH Lora',Georgia,serif;margin-bottom:8px}.mh-photo-empty span{font-size:16px}.mh-login-photo-tools{display:flex;justify-content:center;gap:14px;flex-wrap:wrap}.mh-login-photo button{font:16px 'MH Serif Note',Georgia,serif;cursor:pointer}.mh-login-photo-tools button{background:none;border:0;color:#947184;padding:4px 6px;display:flex;align-items:center;gap:6px}.mh-login-photo-tools svg{width:17px;height:17px}.mh-photo-adjust{width:100%;background:#fff;border:1px solid #eedee5;border-radius:10px;padding:16px;display:grid;gap:10px}.mh-photo-adjust[hidden]{display:none}.mh-photo-adjust label{display:grid!important;grid-template-columns:85px 1fr;align-items:center;gap:14px;font-size:15px!important;margin:0!important}.mh-photo-adjust input{width:100%;accent-color:#c087a0}.mh-photo-adjust button{justify-self:end;border:0;border-radius:6px;background:#f4dce5;padding:6px 14px;color:#806673}.mh-resize-handle{position:absolute;width:12px;height:12px;border:1px solid #c087a0;border-radius:50%;background:#fff;z-index:2;opacity:0;padding:0}.mh-login-photo-frame:hover .mh-resize-handle,.mh-login-photo-frame:focus-within .mh-resize-handle{opacity:1}.mh-resize-handle[data-edge=nw]{top:-6px;left:-6px;cursor:nwse-resize}.mh-resize-handle[data-edge=n]{top:-6px;left:50%;cursor:ns-resize}.mh-resize-handle[data-edge=ne]{top:-6px;right:-6px;cursor:nesw-resize}.mh-resize-handle[data-edge=e]{right:-6px;top:50%;cursor:ew-resize}.mh-resize-handle[data-edge=se]{right:-6px;bottom:-6px;cursor:nwse-resize}.mh-resize-handle[data-edge=s]{bottom:-6px;left:50%;cursor:ns-resize}.mh-resize-handle[data-edge=sw]{bottom:-6px;left:-6px;cursor:nesw-resize}.mh-resize-handle[data-edge=w]{left:-6px;top:50%;cursor:ew-resize}.mh-login-photo-error{font-size:14px;color:#9a425e;text-align:center}.mh-login-photo input[type=file]{display:none}#login .login-system-title{display:none}@media(max-width:950px){.mh-login-layout{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:35px}#login.login-screen{padding:60px 28px}#login .login-card{padding:28px 22px}.mh-login-photo-frame{height:480px}}@media(max-width:650px){#login.login-screen{padding:65px 22px 30px}.mh-login-layout{grid-template-columns:1fr;gap:32px;max-width:440px}#login .login-card{padding:25px 20px}.mh-login-photo-frame{height:400px}.mh-resize-handle{opacity:1}#login h1{font-size:21px}.login-preview-label{left:22px}}
.mh-login-photo [hidden]{display:none!important}

#login.login-screen.hidden,#login[hidden]{display:none!important}
/* Referência: foto fixa maior, formulário menor e alinhamento pela base. */
#login.login-screen{height:100dvh;min-height:0;padding:48px 50px;overflow:hidden}
.mh-login-layout{max-width:1050px;grid-template-columns:360px minmax(0,1fr);align-items:end;gap:90px}
#login .login-card{padding:28px 24px 24px}
#login .brand-mark{display:flex;align-items:center;justify-content:center;gap:0;color:#f4c8d3;font-size:47px;margin-bottom:26px}
#login .brand-mark>span{color:#f4c8d3;padding:0}
#login .brand-mark .mh-login-brand-divider{display:block;width:2px;height:40px;background:#76172c;margin:0 7px;font-size:0;flex:none}
#login button.primary{background:#76172c;color:#f4dce5}
.mh-login-photo{position:relative;gap:0;align-self:end}
.mh-login-photo-frame{width:100%;height:min(74dvh,650px);min-width:0;min-height:0;max-height:none;touch-action:none}
.mh-login-photo-viewport{cursor:grab}.mh-login-photo-viewport:active{cursor:grabbing}.mh-login-photo-viewport img{object-fit:cover}
.mh-login-edit{position:absolute;top:14px;right:14px;display:grid;place-items:center;width:34px;height:34px;border:1px solid #ead0dc;border-radius:50%;background:#fff;color:#967087;opacity:0;transition:opacity .15s;z-index:3}
.mh-login-edit svg{width:18px;height:18px}.mh-login-photo:hover .mh-login-edit,.mh-login-photo:focus-within .mh-login-edit{opacity:1}
.mh-login-editor{position:absolute;right:14px;top:56px;width:280px;max-width:calc(100% - 28px);background:#fff;border:1px solid #ead0dc;border-radius:10px;padding:10px;z-index:3;box-shadow:0 4px 18px #80667316}
.mh-login-photo-tools{justify-content:flex-start;gap:5px}.mh-photo-adjust{margin-top:8px;border:0;padding:6px;gap:9px}.mh-photo-adjust label{grid-template-columns:70px 1fr}.mh-login-photo-error{position:absolute;bottom:12px;left:16px;right:16px;background:#fff;border-radius:5px}.mh-login-photo-error:empty{display:none}
@media(max-width:950px) and (min-width:651px){.mh-login-layout{grid-template-columns:320px minmax(0,1fr);gap:32px}#login.login-screen{padding:35px 28px}}
@media(max-width:650px){#login.login-screen{padding:45px 22px 20px}.mh-login-layout{grid-template-columns:1fr;max-width:390px;gap:18px;align-items:end}#login .login-card{padding:17px 20px 16px;border-width:12px}#login .brand-mark{font-size:37px;line-height:1.1;margin-bottom:16px}#login .brand-mark .mh-login-brand-divider{height:29px}#login input:not([type=range]):not([type=file]){min-height:40px;padding:9px 12px;margin-bottom:12px}#login label{font-size:16px;margin-bottom:5px}#login #mhForgotBtn{margin:0 0 15px auto}#login button.primary{padding:9px 16px}.mh-login-photo-frame{height:clamp(130px,calc(100dvh - 480px),290px)}.mh-login-edit{opacity:1}.mh-login-editor{top:auto;bottom:12px;max-height:calc(100dvh - 100px);overflow:auto}.mh-password-field button{top:7px}}
@media(max-height:650px) and (min-width:651px){#login.login-screen{padding:24px 35px}.mh-login-photo-frame{height:calc(100dvh - 48px)}#login .login-card{padding:18px 22px}#login .brand-mark{font-size:38px;margin-bottom:16px}#login input:not([type=range]):not([type=file]){margin-bottom:12px}}
/* A imagem mantém todos os pixels antes do zoom; a seleção pertence à imagem. */
.mh-login-photo-viewport img{left:50%;top:50%;max-width:none;max-height:none;object-fit:contain;pointer-events:auto;touch-action:none;cursor:move}
.mh-image-selection{position:absolute;border:1px solid #c087a0;pointer-events:none;z-index:2;box-sizing:border-box}
.mh-image-selection button{position:absolute;width:12px;height:12px;min-width:0;min-height:0;border:1px solid #a8738c;border-radius:2px;background:#fff;padding:0;pointer-events:auto;touch-action:none}
.mh-image-selection [data-image-edge=nw]{left:-6px;top:-6px;cursor:nwse-resize}.mh-image-selection [data-image-edge=n]{left:50%;top:-6px;cursor:ns-resize}.mh-image-selection [data-image-edge=ne]{right:-6px;top:-6px;cursor:nesw-resize}.mh-image-selection [data-image-edge=e]{right:-6px;top:50%;cursor:ew-resize}.mh-image-selection [data-image-edge=se]{right:-6px;bottom:-6px;cursor:nwse-resize}.mh-image-selection [data-image-edge=s]{left:50%;bottom:-6px;cursor:ns-resize}.mh-image-selection [data-image-edge=sw]{left:-6px;bottom:-6px;cursor:nesw-resize}.mh-image-selection [data-image-edge=w]{left:-6px;top:50%;cursor:ew-resize}
