/* Access layout aligned with the OT portal, including compact viewports. */
#auth-root{max-width:none;min-height:100vh;min-height:100svh;display:grid;place-items:center;padding:24px}
#auth-root .auth-card{font-family:Inter,'Segoe UI',Arial,sans-serif;font-synthesis:auto;color:#25262a;display:block;width:min(440px,100%);max-width:none;margin:0;padding:36px;background:#fff;border:1px solid #e3e5ea;border-radius:14px;box-shadow:0 10px 40px #1111}
#auth-root .auth-brand{margin:0 0 28px;text-align:center}
#auth-root .auth-brand img{display:block;width:150px;height:auto;margin:0 auto}
#auth-root .auth-content{width:100%;padding:0}
#auth-root h1{font-family:inherit;color:#25262a;font-size:26px;font-weight:650;line-height:1.3;letter-spacing:-.8px;margin:0 0 12px}
#auth-root .auth-intro{font-size:14px;color:#656b78;line-height:1.7;margin:14px 0}
#auth-form{margin-top:24px}
#auth-form label{font-size:14px;font-weight:550;line-height:normal;margin:19px 0 0;gap:8px}
#auth-form label:first-child{margin-top:0}
#auth-form input{display:block;width:100%;height:43px;min-height:43px;margin:0;padding:10px 12px;border:1px solid #dfe1e6;border-radius:6px;background:#fff;color:#30333b;font-family:inherit;font-size:14px;font-weight:550;outline:none}
#auth-form input:focus{border-color:#a6a9b3;box-shadow:0 0 0 3px #efeff2}
#auth-root .auth-password{position:relative}
#auth-root .auth-password input{padding-right:48px}
#auth-root .auth-password-toggle{display:flex;align-items:center;justify-content:center;position:absolute;right:0;top:0;width:43px;height:43px;min-height:43px;padding:0;background:transparent;border:0;border-radius:6px;color:#74777f}
#auth-root .auth-password-toggle:hover{background:#f7f7f9}
#auth-root .auth-password-toggle svg{display:block;pointer-events:none}
#auth-form button[type="submit"]{display:flex;align-items:center;justify-content:center;min-height:41px;width:100%;margin-top:19px;padding:10px 15px;border:1px solid transparent;border-radius:7px;background:#c00;color:#fff;font-size:14px;font-weight:550;line-height:normal;text-align:center}
#auth-form button[type="submit"]:hover{background:#ac0000}
#auth-message:empty{display:none}
#auth-root #auth-message{font-size:14px;line-height:1.7;margin:14px 0 0;color:#a00000;overflow-wrap:anywhere}
#auth-other{margin:16px 0 0;font-size:13px;font-weight:400;justify-content:flex-start}
#auth-other{display:flex;align-items:center;min-height:32px;padding:7px 0;color:#c00;cursor:pointer;list-style:none;line-height:normal;text-align:left}
#auth-root :is(button,a):focus-visible{outline:2px solid #c00;outline-offset:4px}
/* Retain comfortable touch targets and avoid iOS zoom when entering credentials. */
@media(max-width:650px){
 #auth-root{padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}
 #auth-root .auth-card{padding:28px}
 #auth-form input{height:46px;min-height:46px;font-size:16px}
 #auth-root .auth-password-toggle{width:46px;height:46px;min-height:46px}
 #auth-form button[type="submit"],#auth-other{min-height:44px}
}
@media(max-width:360px){#auth-root .auth-card{padding:22px}}
/* Reduce spacing on short viewports without shrinking the reference typography.
   Normal overflow remains available for the keyboard, zoom and expanded help. */
@media(max-height:600px){
 #auth-root{padding:12px max(16px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}
 #auth-root .auth-card{padding:22px}
 #auth-root .auth-brand{margin-bottom:16px}
 #auth-root .auth-brand img{width:130px}
 #auth-root h1{margin-bottom:8px}
 #auth-root .auth-intro{margin:8px 0}
 #auth-form{margin-top:16px}
 #auth-form label{margin:14px 0 0;gap:6px}
 #auth-form button[type="submit"]{margin-top:16px}
 #auth-other{margin-top:8px}
}
@media(max-height:520px){
 #auth-root{padding-top:8px;padding-bottom:max(8px,env(safe-area-inset-bottom))}
 #auth-root .auth-card{padding:16px 20px}
 #auth-root .auth-brand{margin-bottom:10px}
 #auth-root .auth-brand img{width:104px}
 #auth-root h1{margin-bottom:6px}
 #auth-root .auth-intro{margin:6px 0}
 #auth-form{margin-top:10px}
 #auth-form label{margin:10px 0 0;gap:5px}
 #auth-form input{height:44px;min-height:44px}
 #auth-root .auth-password-toggle{width:44px;height:44px;min-height:44px}
 #auth-form button[type="submit"]{margin-top:12px}
 #auth-other{margin-top:4px}
}
@media(min-width:560px) and (max-height:520px){
 #auth-root .auth-card{width:min(760px,100%);padding:20px 28px}
 #auth-root .auth-brand{text-align:left;margin-bottom:16px}
 #auth-root .auth-brand img{margin-left:0}
 #auth-root .auth-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:28px;align-content:start}
 #auth-root h1{grid-column:1;grid-row:1;align-self:end}
 #auth-root .auth-intro{grid-column:1;grid-row:2;margin-top:12px}
 #auth-form{grid-column:2;grid-row:1 / span 2;margin:0}
 #auth-other{grid-column:2;grid-row:3}
}
