/* V8.8 - approved immersive login. All rules are scoped to the authentication view. */
#authView{
  --auth-ink:#f3f8fa;--auth-muted:#afc6d0;--auth-accent:#5ac4cc;
  min-height:100vh;min-height:100svh;display:flex;flex-direction:column;align-items:stretch;
  position:relative;isolation:isolate;overflow-x:clip;padding:0;background:#062f3b;color:var(--auth-ink);
  font-family:"Segoe UI Variable","Segoe UI",Arial,sans-serif;
}
#authView .auth-photo,#authView .auth-shade{position:absolute;inset:0;pointer-events:none;z-index:-1}
#authView .auth-photo{background:url('login-endoscopio.jpg') calc(50% - 130px) center/cover no-repeat;filter:brightness(.8)}
#authView .auth-shade{background:linear-gradient(90deg,rgba(1,33,45,.91),rgba(3,38,50,.65) 36%,rgba(4,32,43,.42) 62%,rgba(3,32,43,.92)),linear-gradient(180deg,rgba(5,28,40,.6),transparent 40%,rgba(0,28,37,.7))}
#authView .auth-topbar,#authView .auth-layout,#authView .auth-bottom{width:calc(100% - 140px);max-width:1480px;margin-inline:auto}
#authView .auth-topbar{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:132px;padding:18px 0}
#authView .auth-logo-link{display:block;padding:13px 18px;background:#fff;border-radius:12px;box-shadow:0 6px 30px #0623311c;flex-shrink:0}
#authView .auth-logo{display:block;width:177px;height:auto;max-width:100%}
#authView .auth-top-links{display:flex;align-items:center;gap:26px;font-size:13px;color:#deeaed}
#authView .auth-top-links>span{font-size:11px;letter-spacing:2px;font-weight:600}
#authView .auth-top-links>i{width:1px;height:20px;background:#64818a66}
#authView a{text-decoration:none;color:inherit}
#authView a:hover{text-decoration:underline;text-underline-offset:4px}
#authView a:focus-visible,#authView button:focus-visible{outline:2px solid var(--auth-accent);outline-offset:4px}
#authView .auth-top-links a{display:flex;align-items:center;gap:9px}
#authView svg{width:19px;height:19px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
#authView .auth-top-links svg{width:16px;height:16px}
#authView .auth-layout{flex:1;display:grid;grid-template-columns:minmax(0,1fr) 434px;align-items:center;gap:72px;padding:12px 6px 38px}
#authView .auth-welcome{align-self:start;padding:78px 0 0 6px;min-width:0}
#authView .auth-eyebrow{display:flex;align-items:center;gap:11px;color:#e3eef1;font-size:11px;letter-spacing:2.8px;font-weight:600}
#authView .auth-eyebrow i{width:23px;height:2px;background:var(--auth-accent)}
#authView .auth-welcome h1{color:var(--auth-ink);font-size:clamp(42px,4.45vw,68px);line-height:1.1;font-weight:550;letter-spacing:-2.3px;margin:29px 0 23px}
#authView .auth-welcome p{font-size:16px;line-height:1.8;color:#c4d7df;margin:0}
#authView .auth-card{width:100%;min-width:0;max-width:100%;padding:37px 37px 29px;background:rgba(5,34,46,.9);border:1px solid #9abcc53d;border-radius:22px;box-shadow:0 18px 70px #00141b3b;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
#authView .auth-kicker{display:block;color:#78d4d9;font-size:10px;letter-spacing:2.2px;font-weight:650;margin-bottom:16px}
#authView .auth-card h2{font-size:29px;line-height:1.25;letter-spacing:-.7px;font-weight:600;color:var(--auth-ink);margin:0 0 12px}
#authView .auth-card p.auth-subtitle{color:#afc6d0;font-size:13px;line-height:1.6;margin:0 0 28px}
#authView .field{margin-bottom:21px}
#authView label{color:#d7e6eb;font-size:12px;text-transform:none;letter-spacing:0;font-weight:600;margin:0 0 10px}
#authView .auth-input{display:flex;align-items:center;gap:11px;min-height:52px;padding:0 13px;border:1px solid #a6c0c747;border-radius:10px;background:#ffffff08;transition:border-color .15s,box-shadow .15s}
#authView .auth-input:focus-within{border-color:var(--auth-accent);box-shadow:0 0 0 3px #5ac4cc24}
#authView .auth-input>svg{width:18px;height:18px;color:#9db7c2}
#authView input{min-height:52px;background:#ffffff08;border:1px solid #a6c0c747;color:#f2f8fa;font-size:16px;padding:12px 13px;outline:none;border-radius:10px}
#authView input::placeholder{color:#9db3be;opacity:1}
#authView input:focus{border-color:var(--auth-accent);box-shadow:0 0 0 3px #5ac4cc24}
#authView .auth-input>input,#authView .auth-input .password-wrap>input{border:0;box-shadow:none;background:transparent;padding-left:0;font-size:14px;min-width:0}
#authView .auth-input .password-wrap{flex:1;min-width:0}
#authView .password-toggle{width:42px;height:44px;right:0;color:#c4dbe3;background:transparent}
#authView .password-toggle:hover,#authView .password-toggle:focus-visible{background:#ffffff12}
#authView .password-toggle svg{width:19px;height:19px}
#authView input:-webkit-autofill{-webkit-text-fill-color:#eef7f8;box-shadow:0 0 0 100px #153b49 inset;caret-color:#eef7f8;transition:background-color 9999s}
#authView #loginCaptchaContainer{margin-top:3px;margin-bottom:20px}
#authView #loginCaptchaContainer>label{color:#c6d9e2;font-size:11px;font-weight:500}
#authView #loginCaptchaWidget{min-height:65px;width:100%;max-width:100%;display:flex;align-items:flex-start}
#authView #loginCaptchaStatus{display:block;color:#b9d2dd;font-size:11px;line-height:1.5;margin-top:8px;overflow-wrap:anywhere}
#authView .auth-enter{display:flex;align-items:center;justify-content:center;gap:22px;width:100%;min-height:52px;background:var(--auth-accent);color:#082d3a;border:0;border-radius:10px;font-size:14px;font-weight:700;box-shadow:none}
#authView .auth-enter:hover{background:#73d0d7}
#authView .auth-enter svg{width:18px;height:18px}
#authView .auth-links{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:21px 0 0}
#authView .auth-links a{display:inline-flex;align-items:center;gap:7px;min-height:44px;font-size:12px;color:#d1e2e8}
#authView .auth-links svg{width:15px;height:15px}
#authView .auth-footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 12px;margin-top:17px;padding-top:19px;border-top:1px solid #7c9aa440;text-align:left;font-size:10px;line-height:1.5;color:#9fb9c5}
#authView .auth-footer strong{color:#c9e0e8;font-weight:600}
#authView .auth-footer .app-version{font-size:10px}
#authView .auth-bottom{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:0 6px 25px;font-size:10px;letter-spacing:.3px;color:#b4cbd5}
#authView .login-feedback{padding:12px 13px;margin:0 0 17px;background:#4c2732;border:1px solid #e7a2ae70;border-radius:9px;color:#ffe5e9;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
@media(min-width:1700px){#authView .auth-layout{grid-template-columns:minmax(0,1fr) 460px;gap:100px}#authView .auth-welcome{padding-top:80px}}
@media(max-width:1100px){#authView .auth-topbar,#authView .auth-layout,#authView .auth-bottom{width:calc(100% - 72px)}#authView .auth-layout{grid-template-columns:minmax(0,1fr) 400px;gap:34px}#authView .auth-card{padding:31px 28px 25px}#authView .auth-welcome{padding-top:64px}#authView .auth-welcome h1{font-size:46px;letter-spacing:-1.4px}#authView .auth-welcome p{font-size:14px}#authView .auth-topbar{min-height:119px}}
@media(max-width:850px){
  #authView .auth-topbar,#authView .auth-layout,#authView .auth-bottom{width:calc(100% - 40px)}
  #authView .auth-topbar{min-height:100px;padding:16px 0}
  #authView .auth-layout{width:min(470px,calc(100% - 40px));grid-template-columns:minmax(0,1fr);gap:22px;align-content:start;padding:9px 0 28px}
  #authView .auth-welcome{padding:0 8px}
  #authView .auth-welcome .auth-eyebrow{display:none}
  #authView .auth-welcome h1{font-size:33px;line-height:1.15;letter-spacing:-1px;margin:5px 0 0}
  #authView .auth-welcome h1 br{display:none}
  #authView .auth-welcome p{display:none}
  #authView .auth-photo{background-position:65% center}
  #authView .auth-shade{background:linear-gradient(180deg,#03232fd9,#03232fa8 35%,#03232fe8)}
  #authView .auth-card{padding:29px 30px 24px;background:rgba(5,34,46,.94)}
  #authView .auth-top-links>span,#authView .auth-top-links>i{display:none}
  #authView .auth-top-links a{min-height:44px;font-size:12px}
  #authView .auth-logo-link{padding:10px 13px}
  #authView .auth-logo{width:157px}
  #authView .auth-bottom{padding-bottom:max(20px,env(safe-area-inset-bottom));font-size:9px;justify-content:center}
  #authView .auth-bottom span:last-child{display:none}
  #authView .auth-input>input,#authView .auth-input .password-wrap>input{font-size:16px}
}
@media(max-width:480px){
  #authView .auth-topbar,#authView .auth-bottom{width:calc(100% - 36px)}
  #authView .auth-layout{width:calc(100% - 28px);gap:17px;padding:2px 0 25px}
  #authView .auth-topbar{min-height:94px}
  #authView .auth-logo{width:143px}
  #authView .auth-logo-link{padding:9px 11px;border-radius:10px}
  #authView .auth-top-links a{font-size:10px;gap:4px}
  #authView .auth-welcome{padding:0 9px}
  #authView .auth-welcome h1{font-size:28px;letter-spacing:-.8px;max-width:330px;margin-top:2px}
  #authView .auth-card{padding:25px 20px 20px;border-radius:18px}
  #authView .auth-kicker{font-size:9px;margin-bottom:13px;letter-spacing:2px}
  #authView .auth-card h2{font-size:27px;margin-bottom:10px}
  #authView .auth-card p.auth-subtitle{font-size:12px;margin-bottom:23px}
  #authView .field{margin-bottom:19px}
  #authView .auth-links{margin-top:15px;gap:6px}
  #authView .auth-links a{font-size:11px}
  #authView .auth-footer{font-size:9px;margin-top:14px;padding-top:16px}
  #authView .auth-footer .app-version{font-size:9px}
}
@media(max-width:360px){#authView .auth-layout{width:calc(100% - 24px)}#authView .auth-card{padding:23px 18px 19px}#authView .auth-welcome h1{font-size:26px}#authView .auth-logo{width:132px}#authView .auth-topbar{min-height:88px}#authView .auth-top-links a{font-size:9px}#authView .auth-links a{font-size:10px}#authView .auth-footer{font-size:9px}#authView #loginCaptchaWidget{justify-content:center}}
@media(prefers-reduced-motion:reduce){#authView *,#authView *:before,#authView *:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
@media(min-width:851px) and (max-height:800px){
  #authView .auth-topbar{min-height:96px;padding:10px 0}
  #authView .auth-logo{width:145px}
  #authView .auth-logo-link{padding:9px 13px}
  #authView .auth-layout{padding-top:0;padding-bottom:20px}
  #authView .auth-card{padding:25px 31px 22px}
  #authView .auth-kicker{margin-bottom:11px}
  #authView .auth-card h2{font-size:27px;margin-bottom:10px}
  #authView .auth-card p.auth-subtitle{margin-bottom:20px;font-size:12px}
  #authView .field{margin-bottom:16px}
  #authView label{margin-bottom:8px}
  #authView .auth-input,#authView input{min-height:48px}
  #authView #loginCaptchaContainer{margin-bottom:16px}
  #authView .auth-enter{min-height:48px}
  #authView .auth-links{margin-top:13px}
  #authView .auth-links a{min-height:40px}
  #authView .auth-footer{margin-top:13px;padding-top:13px}
  #authView .auth-bottom{padding-bottom:17px}
}
