/* N3-Почта: all overrides are restricted to the login page. */
html:has(.n3-login-page) { background:#003b51; min-height:100%; color-scheme:light; }
body:has(.n3-login-page) { margin:0!important; padding:0!important; min-width:0; min-height:100vh; min-height:100svh; overflow-x:hidden; height:auto!important; background:#003b51!important; }
body:has(.n3-login-page)::before { content:""; position:fixed; inset:0; z-index:0; pointer-events:none; background:#003b51 url("background.png") center center / cover no-repeat; }
body:has(.n3-login-page) #layout { position:relative!important; inset:auto!important; display:block!important; width:100%!important; height:auto!important; min-height:100vh; min-height:100svh; margin:0!important; padding:0!important; background:transparent!important; }
#layout-content.n3-login-page { position:relative!important; inset:auto!important; display:flex!important; flex-direction:column; align-items:center; justify-content:flex-start; box-sizing:border-box; width:100%!important; max-width:none!important; height:auto!important; min-height:100vh; min-height:100svh; margin:0!important; padding:clamp(36px,7.6vh,82px) 20px 32px!important; overflow:visible!important; background:transparent!important; color:#f5fdff; font-family:Arial,"Helvetica Neue",sans-serif; }
.n3-login-page * { box-sizing:border-box; }
.n3-symbols { position:absolute; width:0; height:0; overflow:hidden; }
.n3-card { position:relative; width:min(768px,48vw); margin-left:0; padding:40px clamp(40px,5.45vw,94px) 64px; border:2px solid #cdffff; border-radius:50px; background:linear-gradient(125deg,rgba(24,119,181,.70),rgba(17,108,145,.57) 68%,rgba(0,218,171,.42)); box-shadow:inset 0 0 34px rgba(111,221,255,.60),inset 0 2px 6px rgba(255,255,255,.8),0 0 24px rgba(0,198,255,.25); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); }
.n3-card::after { content:""; position:absolute; pointer-events:none; bottom:-2px; left:28%; width:65%; height:30px; border-radius:50%; background:rgba(0,255,204,.23); filter:blur(20px); }
.n3-brand { position:relative; margin:0 -45px 34px; text-align:center; }
.n3-brand-line { position:relative; display:flex; align-items:center; justify-content:center; gap:28px; min-height:118px; }
.n3-cube { position:relative; flex:none; width:112px; height:120px; overflow:visible; filter:drop-shadow(0 0 10px rgba(0,225,255,.48)); }
.n3-brand h1 { position:relative; flex:none; margin:0!important; padding:0!important; font-family:Arial,"Helvetica Neue",sans-serif; font-size:clamp(38px,3.75vw,66px)!important; font-style:italic; font-weight:700; line-height:1.15; letter-spacing:1px; color:#ebffff; text-shadow:0 0 5px #fff,0 0 14px #00cfff,0 0 28px #00b3ff; white-space:nowrap; }
.n3-brand p { position:relative; margin:-24px 0 0 100px; font-size:clamp(17px,1.4vw,24px); line-height:1.5; color:#f2fbff; }
.n3-circuits { position:absolute; left:-8%; top:-4px; width:116%; height:143px; overflow:visible; opacity:.85; filter:drop-shadow(0 0 4px #00daff); }
.n3-login-page #login-form { width:100%!important; max-width:none!important; margin:0!important; padding:0!important; text-align:left; }
.n3-login-page #login-form { position:relative!important; inset:auto!important; top:auto!important; transform:none!important; }
.n3-login-page #login-form .input-group-prepend,.n3-login-page #login-form .input-group-append { display:none!important; }
body:has(.n3-login-page) #rcmloginsubmit-clone { display:none!important; }
body:has(.n3-login-page) { overflow-y:auto!important; }
.n3-login-page #login-form #rcmloginuser { padding-right:18px!important; }
.n3-login-help { position:relative; display:flex; align-items:center; justify-content:center; gap:9px; margin:20px 0 -20px; color:#e5ffff!important; font-size:15px; line-height:1.5; text-decoration:underline; text-underline-offset:4px; }
.n3-login-help:hover { color:#fff!important; text-shadow:0 0 10px #00eddf; }
.n3-login-help:focus-visible { outline:3px solid #b9fffa; outline-offset:6px; border-radius:4px; }
.n3-login-help svg { flex:none; width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.n3-login-page #login-form table { display:block!important; width:100%!important; margin:0!important; border:0!important; }
.n3-login-page #login-form tbody { display:grid!important; gap:16px; width:100%; }
.n3-login-page #login-form tr { display:block!important; margin:0!important; }
.n3-login-page #login-form td.title { position:absolute!important; width:1px!important; height:1px!important; overflow:hidden; clip-path:inset(50%); white-space:nowrap; padding:0!important; }
.n3-login-page #login-form td.input { position:relative; display:block!important; width:100%!important; padding:0!important; }
.n3-login-page #login-form td.input::before,.n3-login-page #login-form label::before { display:none!important; }
.n3-login-page #login-form input.form-control { display:block; box-sizing:border-box; width:100%!important; height:63px!important; margin:0!important; padding:12px 58px 12px 78px!important; border:1.5px solid #d2f8ff!important; border-radius:19px!important; background:linear-gradient(110deg,rgba(217,240,255,.79),rgba(185,229,235,.72))!important; color:#073b64!important; font-size:21px!important; line-height:1.3; font-weight:600; box-shadow:inset 0 0 18px rgba(255,255,255,.12); outline:none; caret-color:#0052a5; }
.n3-login-page #login-form input::placeholder { color:#1c567b!important; opacity:.82; font-weight:400; }
.n3-login-page #login-form input:focus { border-color:#fff!important; box-shadow:0 0 0 3px rgba(4,221,255,.45),0 0 20px rgba(0,221,255,.25)!important; }
.n3-field-icon { position:absolute; z-index:5; left:24px; top:15px; width:32px; height:32px; fill:none; stroke:#0054ad; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; pointer-events:none; }
.n3-login-page #n3-password-toggle { position:absolute; z-index:6; top:8px; right:12px; display:grid; place-items:center; width:46px; height:46px; margin:0; padding:7px; color:#0054ad; border:0; border-radius:10px; background:transparent; cursor:pointer; }
.n3-login-page #n3-password-toggle::before { display:none!important; }
#n3-password-toggle svg { width:32px; height:32px; fill:none; stroke:currentColor; stroke-width:2; }
.n3-login-page #n3-password-toggle:hover { background:rgba(255,255,255,.25); }
.n3-login-page button:focus-visible { outline:3px solid white!important; outline-offset:5px; }
.n3-login-page #login-form .formbuttons { margin:28px 0 0!important; padding:0!important; }
.n3-login-page #rcmloginsubmit { position:relative; display:block; width:100%; min-height:72px; margin:0!important; padding:12px 65px!important; border:2px solid #b6fff7!important; border-radius:20px!important; background:linear-gradient(105deg,#0048cf 0%,#006aae 40%,#00bca9 70%,#00e998 100%)!important; color:#fff!important; font-family:inherit; font-size:28px!important; line-height:1.35; font-weight:700; text-transform:uppercase; box-shadow:-6px 0 24px rgba(0,203,255,.65),7px 0 28px rgba(0,255,176,.7),inset 0 1px 7px rgba(255,255,255,.25); cursor:pointer; transition:filter .15s,box-shadow .15s; }
.n3-login-page #rcmloginsubmit::before,.n3-login-page #rcmloginsubmit::after { display:none!important; }
.n3-login-page #rcmloginsubmit:hover { filter:brightness(1.12); box-shadow:-6px 0 30px rgba(0,203,255,.8),7px 0 34px rgba(0,255,176,.8); }
.n3-login-page #rcmloginsubmit:disabled { cursor:wait; opacity:.7; }
.n3-submit-arrow { position:absolute; right:30px; top:21px; width:30px; height:30px; fill:none; stroke:currentColor; stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round; }
.n3-features { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); width:min(970px,65vw); list-style:none; margin:48px 0 0 0; padding:0; }
.n3-features li { position:relative; display:flex; flex-direction:column; align-items:center; gap:12px; padding:0 16px; text-align:center; color:#fff; font-size:19px; line-height:1.2; }
.n3-features li+li::before { content:""; position:absolute; left:0; top:15px; width:1px; height:95px; background:linear-gradient(transparent,#8de8ff,transparent); opacity:.8; }
.n3-features svg { width:68px; height:62px; fill:none; stroke:#00e4ff; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; filter:drop-shadow(0 0 9px rgba(0,221,255,.65)); }
.n3-features li:nth-child(odd) svg { stroke:#00edbd; }
.n3-footer { display:flex; align-items:center; justify-content:center; gap:34px; width:min(1140px,83vw); margin:auto 0 0; padding-top:72px; color:#fff; font-size:20px; }
.n3-footer-title { display:flex; align-items:center; justify-content:center; gap:15px; white-space:nowrap; }
.n3-footer-title svg { width:36px; height:36px; fill:none; stroke:#e1faff; stroke-width:1.3; stroke-linecap:round; }
.n3-footer-title strong { color:#00e6ef; font-weight:700; }
.n3-footer-line { flex:1; height:1px; background:linear-gradient(90deg,transparent,#cafaff); }
.n3-footer-line:last-child { transform:rotate(180deg); }
body:has(.n3-login-page) #messagestack { position:fixed; z-index:1000; top:16px; right:16px; bottom:auto!important; max-width:min(460px,calc(100vw - 32px)); }
@media(min-width:1400px) and (min-height:850px) { .n3-card { padding-top:40px; padding-bottom:64px; } .n3-brand { margin-bottom:34px; } }
@media(max-width:1100px) { .n3-card { width:min(650px,66vw); margin-left:0; padding:36px 50px 48px; border-radius:40px; } .n3-brand h1 { font-size:clamp(38px,5vw,58px)!important; } .n3-brand-line { gap:20px; } .n3-cube { width:92px; height:105px; } .n3-features { width:80vw; } .n3-features li { font-size:17px; } }
@media(max-width:700px) { body:has(.n3-login-page)::before { background-position:53% center; } #layout-content.n3-login-page { padding:32px 18px 24px!important; } .n3-card { width:min(100%,510px); margin-left:0; padding:32px 26px 38px; border-radius:32px; background:linear-gradient(125deg,rgba(15,100,153,.85),rgba(5,99,127,.83) 65%,rgba(0,179,146,.67)); } .n3-brand { margin:0 -10px 28px; } .n3-brand-line { gap:14px; min-height:98px; } .n3-brand h1 { font-size:clamp(32px,7.5vw,48px)!important; letter-spacing:0; } .n3-cube { width:76px; height:90px; } .n3-circuits { width:110%; height:115px; left:-5%; top:-6px; opacity:.65; } .n3-brand p { margin:0 0 0 36px; font-size:17px; } .n3-login-page #login-form input.form-control { height:60px!important; padding-left:58px!important; font-size:17px!important; border-radius:16px!important; } .n3-field-icon { left:17px; width:28px; height:28px; top:16px; } .n3-login-page #login-form .formbuttons { margin-top:24px!important; } .n3-login-page #rcmloginsubmit { min-height:64px; font-size:23px!important; border-radius:17px!important; } .n3-submit-arrow { right:22px; top:17px; width:27px; height:27px; } .n3-features { width:min(100%,510px); grid-template-columns:repeat(2,minmax(0,1fr)); gap:30px 0; margin:32px 0 0; padding:0; } .n3-features li { font-size:16px; gap:10px; padding:0 8px; } .n3-features svg { width:54px; height:50px; } .n3-features li:nth-child(3)::before { display:none; } .n3-features li+li::before { top:4px; height:90px; } .n3-footer { width:100%; gap:15px; padding-top:38px; font-size:15px; } .n3-footer-title { gap:9px; } .n3-footer-title svg { width:27px; height:27px; } }
@media(max-width:370px) { #layout-content.n3-login-page { padding-left:12px!important; padding-right:12px!important; } .n3-card { padding:26px 18px 32px; } .n3-brand h1 { font-size:30px!important; } .n3-cube { width:65px; height:80px; } .n3-brand-line { gap:10px; } .n3-brand p { margin-left:20px; font-size:15px; } .n3-features li { font-size:14px; } .n3-footer { font-size:13px; gap:10px; } }
@media(prefers-reduced-motion:reduce) { .n3-login-page * { transition:none!important; animation:none!important; } }


/* Circuit lettering is a crisp SVG, with no separate decorative tracks. */
.n3-brand { padding-top:0; padding-bottom:0; }
.n3-brand h1 { font-size:inherit!important; line-height:1; filter:none; text-shadow:none; }
.n3-wordmark { display:block; width:clamp(220px,23vw,390px); height:auto; overflow:visible; }
@media(max-width:1100px) and (min-width:701px) { .n3-wordmark { width:clamp(220px,29vw,335px); } }
@media(max-width:700px) { .n3-wordmark { width:clamp(175px,52vw,260px); } }
@media(max-width:370px) { .n3-wordmark { width:clamp(160px,52vw,192px); } }
