/* MTsN 1 Tana Toraja • Neumorphism Reference EXACT
   Tokens derived from uploaded '111-Login & Sign Up Form' CSS, original screenshot.
   This is the ONLY neumorphic skin: replaces previous unified/stage2 links.
   Functional state (open/closed, hidden, position, input names) remains owned by DS46.
*/
:root {
 --nm-bg:#e7ebf0;--nm-ink:#303943;--nm-muted:#7c858e;--nm-blue:#006cff;
 --nm-light:rgba(255,255,255,.95);--nm-dark:rgba(163,177,198,.65);
 --nm-raised:8px 8px 16px rgba(163,177,198,.65),-8px -8px 16px rgba(255,255,255,.95);
 --nm-raised-big:20px 20px 40px rgba(163,177,198,.65),-20px -20px 40px rgba(255,255,255,.95);
 --nm-recess:inset 6px 6px 12px rgba(163,177,198,.55),inset -6px -6px 12px rgba(255,255,255,.95);
 --nm-recess-small:inset 3px 3px 7px rgba(163,177,198,.55),inset -3px -3px 7px rgba(255,255,255,.95);
 --nm-raised-light:6px 6px 13px rgba(163,177,198,.42),-6px -6px 13px rgba(255,255,255,.95);
}
/* Public, admin and member shells: user-required single light skin. */
html body:where(.auth-body,.admin-body,.public-site-body,.portal-shell,.contrib-body,.tv-site){background:var(--nm-bg)!important;color:var(--nm-ink);}
html[data-theme="dark"] body :where(.admin-card,.portal-card,.button,.btn,button,.input-icon){color:inherit;}
/* Card geometry from reference image. Internal flexible containers are NOT surfaced. */
body :where(.auth-form-card,.admin-card,.dashboard-card,.stat-card,.admin-stat,.kpi-card,.metric-card,.settings-card,.portal-card,.content-card,.quick-card,.service-card,.facility-card,.c-main>section,.c-main>article,.gallery-card,.document-card,.search-panel,.ptsp-paper,.zi-card,.sw-card,.tv-card,.table-card){
 background:var(--nm-bg)!important;border:1px solid rgba(255,255,255,.66)!important;
 border-radius:27px!important;box-shadow:var(--nm-raised-light)!important;color:var(--nm-ink);
}
/* All standard actions reflect exact reference .main-btn, including menu actions */
body :is(button:not(.nm-upload-dropzone),.button,.btn,.c-link,.tv-button,.ptsp-button,.sw-btn,.page-button,.action-button,.portal-button,.karya-primary,.account36-google,.shortcut-grid>a,.header-actions>a,.admin-list>a,.filter-tabs>a,.mobile-bottom-nav>a,.pagination>a,.auth-help>a,.admin-nav a,.admin-nav summary,.portal-nav a,.portal-nav summary,.c-top nav a,.tv-nav a,.site-nav a,.site-header nav a,.site-sidebar a,.sidebar-menu a,.menu a,.nav-link,.navbar a,.header-menu a,.portal-header-actions a,.site-footer a.button){
 background:var(--nm-bg)!important;color:var(--nm-blue)!important;
 border:1px solid rgba(255,255,255,.48)!important;border-radius:17px!important;
 box-shadow:var(--nm-raised)!important;
 transition:box-shadow .22s ease,color .2s ease,transform .2s ease,background-color .2s ease!important;
 text-decoration:none;
}
body :is(button:not(.nm-upload-dropzone),.button,.btn,.c-link,.tv-button,.ptsp-button,.sw-btn,.page-button,.action-button,.portal-button,.karya-primary,.account36-google,.shortcut-grid>a,.header-actions>a,.admin-list>a,.filter-tabs>a,.mobile-bottom-nav>a,.pagination>a,.auth-help>a,.admin-nav a,.admin-nav summary,.portal-nav a,.portal-nav summary,.c-top nav a,.tv-nav a,.site-nav a,.site-header nav a,.site-sidebar a,.sidebar-menu a,.menu a,.nav-link,.navbar a,.header-menu a,.portal-header-actions a):hover{
 box-shadow:9px 9px 18px rgba(163,177,198,.6),-9px -9px 18px rgba(255,255,255,.96)!important;
}
body :is(button,.button,.btn,.c-link,.tv-button,.ptsp-button,.sw-btn,.page-button,.karya-primary,.admin-nav a,.admin-nav summary,.portal-nav a,.portal-nav summary,.mobile-bottom-nav a,.filter-tabs a):is(:active,.is-active,[aria-current="page"],[aria-selected="true"]){
 background:var(--nm-bg)!important;color:var(--nm-blue)!important;box-shadow:var(--nm-recess)!important;
}
body :is(button,.button,.btn,.ptsp-button,.sw-btn,.karya-primary):disabled{opacity:.53!important;cursor:not-allowed!important;transform:none!important;}
body :is(button,.button,.btn,a,input,select,textarea,summary):focus-visible{outline:3px solid rgba(0,108,255,.68)!important;outline-offset:3px!important;}
body :is(button,.button,.btn,.karya-primary,.portal-button,.ptsp-button):is(.button-danger,.btn-danger,.danger,.is-danger){color:#ae3e51!important;}
/* Menu items are pills at rest, scooped into background when selected. */
body :is(.admin-nav,.portal-nav,.tv-nav,.c-top nav,.sidebar-menu,.filter-tabs,.site-header nav,.nav-menu,.sidebar-nav) :is(a,summary,button){
 padding:10px 14px;min-height:42px;display:flex;align-items:center;gap:10px;max-width:100%;
}
body :is(.admin-nav,.portal-nav,.tv-nav,.c-top nav,.sidebar-menu,.filter-tabs,.site-header nav,.nav-menu,.sidebar-nav) :is(a,summary,button).is-active,
body :is(.admin-nav,.portal-nav,.tv-nav,.c-top nav,.sidebar-menu,.filter-tabs,.site-header nav,.nav-menu,.sidebar-nav) :is(a,summary,button)[aria-current="page"]{
 box-shadow:var(--nm-recess)!important;color:#0058ce!important;
}
body .admin-sidebar{background:var(--nm-bg)!important;color:var(--nm-ink)!important;
 box-shadow:8px 0 30px rgba(163,177,198,.33)!important;border:0!important;border-radius:0 28px 28px 0!important;}
body .admin-sidebar :is(strong,b,small,p,span,a,summary){color:var(--nm-ink)!important;}
body .admin-sidebar :is(a,summary):is(:hover,.is-active,[aria-current="page"]){color:var(--nm-blue)!important;}
body :is(.admin-topbar,.portal-header,.c-top,.tv-header,.site-header,.site-footer,.portal-footer,.c-footer){background:var(--nm-bg)!important;color:var(--nm-ink)!important;border:1px solid rgba(255,255,255,.72)!important;
 box-shadow:var(--nm-raised-light)!important;}
body :is(.admin-topbar,.portal-header,.c-top){border-radius:20px!important;}
body .admin-main,body .admin-content,body .admin-shell,body .c-main,body .portal-content,
body .public-main,body .portal-shell,body .tv-site{box-shadow:none!important;border:0!important;}
/* Generic single-line input wells; keep inner input of special input-icon clean */
body :is(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]):not([type="file"]):not([type="hidden"]),textarea,select,.form-control,.karya-form input:not([type="checkbox"]),.karya-form select){
 background:var(--nm-bg)!important;color:var(--nm-ink)!important;border:1px solid transparent!important;
 border-radius:16px!important;box-shadow:var(--nm-recess)!important;min-width:0;max-width:100%;
}
body :is(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]):not([type="file"]):not([type="hidden"]),textarea,select,.form-control)::placeholder{color:#8a96a7!important;opacity:1;}
body :is(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]):not([type="file"]):not([type="hidden"]),textarea,select,.form-control):focus{
 box-shadow:var(--nm-recess-small),0 0 0 2px rgba(0,108,255,.08)!important;
}
body .input-icon{background:var(--nm-bg)!important;box-shadow:var(--nm-recess)!important;border:1px solid transparent!important;border-radius:16px!important;}
body .input-icon>input{box-shadow:none!important;background:transparent!important;border:0!important;}
body :where(label,.form-label,.field-label){color:#456e9f;}
/* Dashboard table/fixed dialogs retain original positioning/sizing & interaction */
body :is(.table-wrap,.table-responsive,.responsive-table){background:var(--nm-bg)!important;border-radius:23px!important;box-shadow:var(--nm-raised-light)!important;}
body :is(.data-table,.admin-table){background:transparent!important;box-shadow:none!important;border:0!important;}
body :is(.data-table,.admin-table) thead th{background:#e4e9f0!important;color:#42628a!important;}
body :is(.admin-card,.form-card,.settings-card,.panel) :is(.form-actions,.filter-actions,.settings-save-bar){gap:14px;}
body :is(dialog[open],.modal.is-open,.dialog.is-open,.modal[aria-hidden="false"]){
 background:var(--nm-bg)!important;border-radius:29px!important;border:1px solid rgba(255,255,255,.75)!important;
 box-shadow:18px 18px 42px rgba(123,142,172,.5),-10px -10px 28px rgba(255,255,255,.94)!important;color:var(--nm-ink)!important;
}
body dialog::backdrop{background:rgba(38,56,82,.5)!important;backdrop-filter:blur(4px);}
/* Exceptions: technical editors/readers and backdrops must not inherit pill controls or transforms */
body :is(.tox,.ql-toolbar,.te-editor-canvas,.te-canvas,.tinta-flipmag,.tinta-reader,.filepond--root,.pdf-viewer,.viewer-toolbar) button{
 border-radius:revert!important;box-shadow:none!important;background:revert!important;color:inherit!important;transform:none!important;
}
body :is(.portal-nav-backdrop,.admin-sidebar-backdrop,.search-backdrop,.overlay-backdrop,.modal-backdrop){
 box-shadow:none!important;border:0!important;border-radius:0!important;background:transparent!important;
}
/* THE LOGIN REBUILD: match reference: centered pale card, round lock badge, inset inputs and raised action. */
html body.auth-body{background:var(--nm-bg)!important;color:var(--nm-ink)!important;min-height:100dvh;height:auto!important;
 display:block!important;margin:0!important;padding:clamp(16px,3vh,36px) 14px!important;overflow-x:hidden!important;overflow-y:auto!important;}
html body.auth-body .auth-shell{width:100%!important;max-width:none!important;display:flex!important;justify-content:center!important;align-items:flex-start!important;
 min-height:unset!important;height:auto!important;margin:0 auto!important;padding:0!important;background:transparent!important;border:0!important;
 border-radius:0!important;overflow:visible!important;box-shadow:none!important;}
html body.auth-body .auth-visual{display:none!important;}
html body.auth-body .auth-form-wrap{width:min(100%,540px)!important;max-width:540px!important;min-width:0!important;
 height:auto!important;min-height:0!important;overflow:visible!important;padding:0!important;display:flex!important;flex-direction:column!important;
 justify-content:center!important;align-items:stretch!important;background:transparent!important;border:0!important;box-shadow:none!important;}
html body.auth-body .auth-mobile-brand{display:none!important;}
html body.auth-body .auth-form-card{position:relative!important;width:100%!important;max-width:100%!important;
 margin:18px 0 24px!important;padding:40px clamp(23px,5vw,42px) 34px!important;overflow:visible!important;
 background:var(--nm-bg)!important;border:1px solid rgba(255,255,255,.74)!important;border-radius:35px!important;
 box-shadow:var(--nm-raised-big)!important;color:var(--nm-ink)!important;}
html body.auth-body .nm-auth-brand{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;
 color:#586779;font-size:.78rem;font-weight:700;letter-spacing:.02em;margin:0 auto 14px;}
html body.auth-body .nm-auth-lock{width:86px;height:86px;display:grid;place-items:center;border-radius:50%;color:var(--nm-blue);
 background:var(--nm-bg);box-shadow:9px 9px 18px rgba(163,177,198,.65),-9px -9px 18px rgba(255,255,255,.95);}
html body.auth-body .auth-form-heading{display:grid!important;gap:6px!important;text-align:center;margin:0 auto!important;}
html body.auth-body .auth-form-heading h1{font-size:clamp(1.75rem,5vw,2.15rem)!important;font-weight:800!important;
 letter-spacing:-.03em;line-height:1.14!important;color:var(--nm-ink)!important;margin:0!important;}
html body.auth-body .auth-form-heading p{margin:0!important;font-size:.86rem!important;color:var(--nm-muted)!important;line-height:1.55!important;}
html body.auth-body .auth-login-form{margin-top:26px!important;display:grid!important;gap:20px!important;}
html body.auth-body .auth-login-form>label{display:grid!important;gap:8px!important;font-weight:700!important;font-size:.82rem!important;
 color:#2670ab!important;position:relative;min-width:0;}
html body.auth-body .auth-login-form .input-icon{position:relative;display:grid!important;align-items:center!important;
 grid-template-columns:27px minmax(0,1fr) auto!important;gap:10px!important;
 min-height:58px!important;padding:0 16px!important;background:var(--nm-bg)!important;
 border:1px solid transparent!important;border-radius:17px!important;
 box-shadow:var(--nm-recess)!important;overflow:visible!important;}
html body.auth-body .auth-login-form .input-icon::before,
html body.auth-body .auth-login-form .input-icon::after{content:none!important;display:none!important;}
html body.auth-body .auth-login-form .input-icon>svg{width:20px;height:20px;color:#2e4158!important;z-index:1;}
html body.auth-body .auth-login-form .input-icon input{
 display:block!important;width:100%!important;min-width:0!important;min-height:54px!important;height:54px!important;
 border:0!important;outline:0!important;border-radius:16px!important;background:transparent!important;
 box-shadow:none!important;color:var(--nm-ink)!important;padding:0 4px!important;font-size:16px!important;font-weight:500!important;}
html body.auth-body .auth-login-form .input-icon input:focus{box-shadow:none!important;}
html body.auth-body .auth-login-form .input-icon:focus-within{box-shadow:var(--nm-recess-small),0 0 0 2px rgba(0,108,255,.13)!important;}
html body.auth-body .auth-login-form .input-icon [data-password-toggle]{display:grid!important;place-items:center!important;
 width:36px!important;height:36px!important;min-height:0!important;min-width:0!important;padding:0!important;
 border:0!important;border-radius:50%!important;box-shadow:none!important;background:transparent!important;color:#566575!important;}
html body.auth-body .auth-login-form .input-icon [data-password-toggle]:hover{color:var(--nm-blue)!important;}
html body.auth-body .auth-login-form .arithmetic-captcha{border:0!important;border-radius:19px!important;padding:16px!important;
 background:var(--nm-bg)!important;box-shadow:var(--nm-recess)!important;}
html body.auth-body .auth-login-form .arithmetic-captcha>label{font-weight:700;color:#456e9f!important;}
html body.auth-body .auth-login-form .arithmetic-captcha>label small{font-weight:400;color:var(--nm-muted)!important;}
html body.auth-body .auth-login-form .arithmetic-captcha-row{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;align-items:center;gap:12px!important;}
html body.auth-body .auth-login-form .arithmetic-captcha-question{color:var(--nm-ink)!important;white-space:nowrap;}
html body.auth-body .auth-login-form #arithmetic-captcha-answer{background:var(--nm-bg)!important;border:0!important;
 border-radius:16px!important;box-shadow:var(--nm-recess)!important;text-align:center!important;min-width:0!important;min-height:54px!important;height:54px!important;
 padding:0 12px!important;color:var(--nm-ink)!important;font-size:16px!important;}
html body.auth-body .auth-login-form .auth-submit,
html body.auth-body .two-factor-form button[type="submit"],
html body.auth-body .karya-form button[type="submit"]{
 width:100%!important;min-height:58px!important;border:0!important;border-radius:17px!important;
 display:flex!important;justify-content:center!important;align-items:center!important;gap:10px!important;
 background:var(--nm-bg)!important;color:var(--nm-blue)!important;font-weight:800!important;font-size:1rem!important;
 box-shadow:var(--nm-raised)!important;transform:none!important;}
html body.auth-body .auth-login-form .auth-submit:hover,
html body.auth-body .two-factor-form button[type="submit"]:hover,
html body.auth-body .karya-form button[type="submit"]:hover{transform:translateY(-2px)!important;}
html body.auth-body .auth-login-form .auth-submit:active{transform:translateY(0)!important;box-shadow:var(--nm-recess)!important;}
html body.auth-body .account36-divider{margin:23px 0 19px!important;color:var(--nm-muted)!important;}
html body.auth-body .account36-divider::before,html body.auth-body .account36-divider::after{background:#ccd6e4!important;}
html body.auth-body .account36-google{width:100%!important;min-height:53px!important;border:0!important;
 background:var(--nm-bg)!important;box-shadow:var(--nm-raised)!important;border-radius:17px!important;color:var(--nm-ink)!important;
 display:flex!important;justify-content:center!important;align-items:center!important;gap:13px!important;padding:12px!important;text-decoration:none!important;}
html body.auth-body .auth-help{display:flex!important;flex-wrap:wrap!important;justify-content:center!important;align-items:center!important;
 gap:13px!important;margin:23px 0 0!important;padding:0!important;}
html body.auth-body .auth-help>a{font-size:.81rem!important;min-height:40px!important;padding:10px 12px!important;
 display:inline-flex;align-items:center;justify-content:center;white-space:normal!important;text-align:center;line-height:1.35;}
/* Registration / reset: same reference raised card and inset inputs. */
html body.auth-body .account36-card{max-width:620px!important;}
html body.auth-body .karya-form :is(input:not([type="checkbox"]):not([type="file"]),select,textarea),
html body.auth-body :is(.two-factor-form input,.stack-form>label>input){min-height:52px!important;height:auto!important;
 border:0!important;border-radius:16px!important;background:var(--nm-bg)!important;box-shadow:var(--nm-recess)!important;color:var(--nm-ink)!important;padding:12px 15px!important;}
html body.auth-body .karya-form :is(label,span),html body.auth-body .two-factor-form label{color:#406a9e;}
/* OTP: reference's isolated digit capsules, six digits because real TOTP uses 6. */
html body.auth-body .nm-otp-boxes{display:none;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin:3px 0 4px;}
html body.auth-body .two-factor-card.nm-otp-ready:not(.nm-otp-recovery) .nm-otp-boxes{display:grid;}
html body.auth-body .two-factor-card.nm-otp-ready:not(.nm-otp-recovery) #two-factor-code{
 position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;clip-path:inset(50%)!important;opacity:0!important;pointer-events:none!important;
}
html body.auth-body .nm-otp-cell{width:100%!important;height:66px!important;min-height:0!important;padding:0!important;
 text-align:center!important;font-size:1.45rem!important;font-weight:800!important;letter-spacing:0!important;
 border:0!important;border-radius:16px!important;background:var(--nm-bg)!important;box-shadow:var(--nm-recess)!important;color:var(--nm-blue)!important;}
html body.auth-body .nm-otp-cell:focus{box-shadow:var(--nm-recess-small),0 0 0 2px rgba(0,108,255,.25)!important;outline:none!important;}
html body.auth-body .nm-otp-mode{margin-top:1rem!important;min-height:44px!important;font-weight:700;}
html body.auth-body .two-factor-card.nm-otp-recovery .nm-otp-boxes{display:none!important;}
html body.auth-body .two-factor-card.nm-otp-recovery #two-factor-code{position:static!important;width:100%!important;height:56px!important;clip-path:none!important;opacity:1!important;pointer-events:auto!important;}
/* Strong-password feedback: informational only. Server-side validation remains authoritative. */
.nm-strength{display:grid;gap:7px;width:100%;margin-top:9px;color:var(--nm-muted);font-size:.79rem;font-weight:600;}
.nm-strength-track{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;}
.nm-strength-track>i{height:7px;border-radius:999px;background:#d4dce7;box-shadow:var(--nm-recess-small);transition:background .18s ease;}
.nm-strength[data-level="1"] i:first-child{background:#d65a61;}
.nm-strength[data-level="2"] i:nth-child(-n+2){background:#eaa447;}
.nm-strength[data-level="3"] i:nth-child(-n+3){background:#427ac8;}
.nm-strength[data-level="4"] i{background:#309872;}
.nm-strength-caption{color:#54708d;}
/* Loading reference: 12 orbiting capsule buttons, kept inside page-loader lifecycle. */
html body .site-page-loader{background:var(--nm-bg)!important;color:var(--nm-ink)!important;}
html body .site-page-loader::before{background:none!important;animation:none!important;}
html body .site-page-loader .nm-loader-orbit{position:relative!important;width:162px!important;height:162px!important;margin:0 0 20px!important;
 border-radius:50%!important;background:var(--nm-bg)!important;box-shadow:var(--nm-recess)!important;transform:rotateX(18deg);}
html body .site-page-loader .nm-loader-dot{--angle:calc(var(--i) * 30deg);width:15px!important;height:15px!important;border-radius:50%!important;
 position:absolute!important;top:calc(50% - 7.5px)!important;left:calc(50% - 7.5px)!important;
 display:block!important;background:var(--nm-bg)!important;box-shadow:var(--nm-raised-light)!important;
 transform:rotate(var(--angle)) translateX(59px)!important;animation:nm-orbit-pulse 1.45s ease-in-out infinite!important;animation-delay:calc(var(--i) * 115ms)!important;}
html body .site-page-loader .nm-loader-center{position:absolute!important;inset:42px!important;display:grid!important;place-items:center!important;
 border-radius:50%!important;background:var(--nm-bg)!important;box-shadow:var(--nm-raised-light)!important;
 color:var(--nm-blue)!important;text-align:center;font-weight:900!important;font-size:.98rem!important;line-height:1.1!important;}
html body .site-page-loader>strong{color:var(--nm-ink)!important;font-weight:800!important;}
html body .site-page-loader>small{color:var(--nm-muted)!important;}
@keyframes nm-orbit-pulse{0%,70%,100%{background:#e7ebf0;box-shadow:var(--nm-recess-small);}28%{background:#006cff;box-shadow:0 0 17px rgba(0,108,255,.42);}}
/* Basketball upload: same soft-ui surfaces. */
body .nm-upload-wrap{margin:12px 0;min-width:0;max-width:100%;}
body input.nm-upload-native{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;clip-path:inset(50%)!important;}
body .nm-upload-dropzone{width:100%!important;min-height:190px!important;display:flex!important;flex-direction:column!important;align-items:center!important;
 justify-content:center!important;gap:10px!important;background:var(--nm-bg)!important;border:1px solid rgba(255,255,255,.7)!important;
 border-radius:24px!important;box-shadow:var(--nm-recess)!important;padding:20px!important;color:var(--nm-ink)!important;cursor:pointer!important;}
body .nm-upload-dropzone.is-dragover{outline:3px solid rgba(0,108,255,.28)!important;}
body .nm-upload-ball{width:52px;height:52px;border-radius:50%;background:radial-gradient(circle at 30% 26%,#ffd99b,#f18b31 58%,#bc571e);
 box-shadow:var(--nm-raised-light);display:block;position:relative;}
body .nm-upload-ball:before,body .nm-upload-ball:after{content:"";display:block;position:absolute;background:rgba(117,57,21,.55);}
body .nm-upload-ball:before{width:2px;height:100%;left:50%;top:0;}
body .nm-upload-ball:after{width:100%;height:2px;top:50%;left:0;}
body .nm-upload-title{color:var(--nm-blue)!important;font-weight:800;}
body .nm-upload-subtitle,body .nm-upload-meta{color:var(--nm-muted)!important;font-size:.82rem;text-align:center;}
body .nm-upload-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;}
body .nm-upload-chip,body .nm-upload-filelist li{background:var(--nm-bg);border-radius:14px;box-shadow:var(--nm-raised-light);padding:7px 11px;color:#35628f;}
body .nm-upload-filelist{display:grid;gap:6px;list-style:none;padding:10px 0 0;margin:0;}
/* GLOW NAV: light toned adaptation, only hover/current; links remain real original links. */
body :is(.admin-nav,.portal-nav,.site-header nav,.tv-nav,.mobile-bottom-nav) a:is(:hover,.is-active,[aria-current="page"]) svg{
 color:#006cff;filter:drop-shadow(0 0 5px rgba(0,108,255,.32));}
/* Prevent hijacking critical drawer, tools, canvas transforms/positions */
body :is(.site-page-loader,.admin-sidebar,.portal-nav,.mobile-bottom-nav,.modal-backdrop,.search-panel,.search-backdrop,.portal-nav-backdrop) {transition-property:opacity,visibility,transform!important;}
body :where(canvas,iframe,video,.te-editor-canvas,.editor-canvas,.publication-turn-sheet){box-shadow:none;}
@media(max-width:640px){
 html body.auth-body{padding:14px 12px 30px!important;}
 html body.auth-body .auth-form-card{margin:8px 0 22px!important;padding:28px 21px 26px!important;border-radius:29px!important;}
 html body.auth-body .nm-auth-lock{width:70px;height:70px;}
 html body.auth-body .auth-form-heading h1{font-size:1.75rem!important;}
 html body.auth-body .auth-login-form{gap:17px!important;margin-top:22px!important;}
 html body.auth-body .auth-login-form .input-icon{min-height:56px!important;}
 html body.auth-body .nm-otp-boxes{gap:6px;}
 html body.auth-body .nm-otp-cell{height:56px!important;border-radius:13px!important;font-size:1.16rem!important;}
 body .admin-sidebar{border-radius:0 22px 22px 0!important;}
 body :is(.admin-nav,.portal-nav,.site-header nav) :is(a,summary,button){padding:9px 11px;}
}
@media(max-width:380px){
 html body.auth-body .auth-form-card{padding:25px 16px!important;}
 html body.auth-body .auth-login-form .arithmetic-captcha-row{gap:7px!important;}
 html body.auth-body .nm-otp-cell{height:48px!important;}
}
@media(prefers-reduced-motion:reduce){
 html body .site-page-loader .nm-loader-dot{animation:none!important;}
 body :is(button,.button,.btn,.admin-nav a,.portal-nav a){transition:none!important;}
}

/* Keep brand visible on registration/reset (login and OTP own their round icon). */
html body.auth-body:not(.admin-login-page):not(.two-factor-page) .auth-mobile-brand{
 display:flex!important;justify-content:center;align-items:center;align-self:center;gap:10px;
 margin:12px auto 3px!important;padding:12px 17px!important;
 background:#e7ebf0!important;box-shadow:var(--nm-raised-light)!important;border-radius:20px!important;
}
/* Ensure focused email/password do not inherit the old second inset layer.
   The parent pill is the only recessed element, exactly as in the reference. */
html body.auth-body .auth-login-form .input-icon input:not(#nm-not-used),
html body.auth-body .auth-login-form .input-icon input:not(#nm-not-used):focus{
 background:transparent!important;background-color:transparent!important;background-image:none!important;
 box-shadow:none!important;border:0!important;outline:0!important;filter:none!important;transition:none!important;
}
html body.auth-body .auth-login-form .input-icon:not(#nm-not-used){
 background:#e7ebf0!important;box-shadow:var(--nm-recess)!important;
}
html body.auth-body .auth-login-form .input-icon:not(#nm-not-used):focus-within{
 background:#e7ebf0!important;box-shadow:var(--nm-recess-small),0 0 0 2px rgba(0,108,255,.14)!important;
}
html body.auth-body .auth-login-form .auth-submit:not(#nm-not-used){
 background:#e7ebf0!important;background-image:none!important;color:#006cff!important;
 box-shadow:var(--nm-raised)!important;filter:none!important;
}
html body.auth-body .auth-form-card:not(#nm-not-used){
 animation:none!important;transition:none!important;background:#e7ebf0!important;box-shadow:var(--nm-raised-big)!important;
}
