/* net2000 logo v1 */
.task-login .n2k-card #logo.n2k-logo,.task-login #logo.n2k-logo{width:auto!important;height:56px!important;max-width:100%;object-fit:contain}
@media (max-width:480px){.task-login .n2k-card #logo.n2k-logo,.task-login #logo.n2k-logo{height:44px!important}}
#layout-menu .popover-header #logo,#layout-menu .popover-header img{background:transparent!important;object-fit:contain}

/* logo v1.1: lockup already says "Net2000 Webmail"; keep heading for screen readers only */
.n2k-card .n2k-title{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;margin:0;padding:0;border:0}

/* BEGIN N2K-GLASS-SURFACES v1.1.2-mobilelogin */
/* 144px square is about 3x visible width / 2x height of the old
   64px full-lockup visible mark. The original artwork is undistorted. */
.task-login .n2k-wrap>.n2k-card{max-width:480px}
.task-login .n2k-home-logo{display:inline-block;line-height:0;vertical-align:middle;max-width:100%;border-radius:0}
.task-login .n2k-card .n2k-home-logo>.n2k-login-glass,.task-login .n2k-login-glass{
 width:144px!important;height:144px!important;max-width:36vw;max-height:none;
 object-fit:contain;object-position:center;margin:0;opacity:1
}
.task-login .n2k-card h2.n2k-title{display:inline-block;position:static!important;width:auto;height:auto;
 overflow:visible;clip:auto;white-space:normal;vertical-align:middle;
 margin:0 0 0 22px;font:800 38px/1.02 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
 letter-spacing:.015em;color:var(--n2k-navy-800);text-align:left
}
.task-login .n2k-card h2.n2k-title>span{display:block}
.task-login .n2k-card h2.n2k-title>span:last-child{font-size:26px;font-weight:600;letter-spacing:.06em;margin-top:9px}
html.dark-mode .task-login .n2k-home-logo,.dark-mode .task-login .n2k-home-logo{background:transparent}
html.dark-mode .task-login .n2k-card h2.n2k-title,.dark-mode .task-login .n2k-card h2.n2k-title{color:#25315f}
@media (max-width:480px){
 .task-login #layout-content.n2k-login{padding-top:8px;padding-bottom:20px}
 /* Narrow phones: keep the existing art and stacked title inline, not separate blocks.
    Do not centre the whole lockup; preserve ownership of the native login form and padding. */
 .task-login .n2k-wrap>.n2k-card{max-width:100%;padding:12px 14px 14px;border-radius:14px;text-align:left}
 .task-login .n2k-home-logo{display:inline-block!important;margin:0;vertical-align:middle}
 .task-login .n2k-card .n2k-home-logo>.n2k-login-glass,.task-login .n2k-login-glass{width:88px!important;height:88px!important;max-width:100%;max-height:none}
 .task-login .n2k-card h2.n2k-title{display:inline-block!important;font-size:30px;line-height:1;text-align:left;vertical-align:middle;white-space:nowrap;margin:0 0 0 12px}
 .task-login .n2k-card h2.n2k-title>span:last-child{font-size:22px;line-height:1.1;margin-top:6px}
 .task-login .n2k-tagline{margin:6px auto 8px;padding:6px 2px 7px}
 .task-login .n2k-tag-head{line-height:1.25}
 .task-login .n2k-tag-sub{line-height:1.3}
 .task-login .n2k-card .n2k-sub{display:block;height:auto;margin:0 0 8px;font-size:14px;line-height:1.25;text-align:center}
 /* v1.1.0/v1.1.1 with no decorative greeting in .n2k-sub must collapse that empty p only. */
 .task-login .n2k-card p.n2k-sub:empty{display:none;margin:0;padding:0}
 .task-login .n2k-card #login-form .form-group{margin-bottom:10px}
 .task-login .n2k-card #rcmloginsubmit{margin-top:2px}
 .task-login .n2k-card #login-footer{margin-top:10px}
}
/* Leave the default generous touch target and ordinary native form overflow alone.
   Only shave additional internal space when a browser still needs fitting, or below 370px. */
@media (max-width:370px){
 .task-login #layout-content.n2k-login{padding-top:6px}
 .task-login .n2k-wrap>.n2k-card{padding:10px 12px 12px}
 .task-login .n2k-card .n2k-home-logo>.n2k-login-glass,.task-login .n2k-login-glass{width:80px!important;height:80px!important}
 .task-login .n2k-card h2.n2k-title{font-size:28px;margin-left:10px}
 .task-login .n2k-card h2.n2k-title>span:last-child{font-size:21px;margin-top:5px}
 .task-login .n2k-tagline{margin:5px auto 7px;padding-top:5px;padding-bottom:6px}
 .task-login .n2k-card #login-form .form-group{margin-bottom:8px}
}
/* Existing compact selectors left intact; untouched general app/help CSS. */
/* END N2K-GLASS-SURFACES v1.1.1 */

/* Login must not depend on optional full lockup skin_logo precedence. */
.task-login .n2k-home-logo>.n2k-login-glass-dark{display:none!important}
html.dark-mode .task-login .n2k-home-logo>.n2k-login-glass-light,.dark-mode .task-login .n2k-home-logo>.n2k-login-glass-light{display:none!important}
html.dark-mode .task-login .n2k-home-logo>.n2k-login-glass-dark,.dark-mode .task-login .n2k-home-logo>.n2k-login-glass-dark{display:block!important}
@media(prefers-color-scheme:dark){.task-login .n2k-home-logo>.n2k-login-glass-light{display:none!important}.task-login .n2k-home-logo>.n2k-login-glass-dark{display:block!important}}

