.offiglass-access-error {
  box-sizing: border-box;
  width: min(430px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: clamp(20px, 6vw, 30px);
  border: 1px solid #d7e5ef;
  border-radius: 22px;
  background: #fff;
  color: #143754;
  box-shadow: 0 24px 80px #061b3855;
  text-align: center;
  font-family: system-ui, sans-serif;
}
.offiglass-access-error::backdrop { background: #081f39a6; backdrop-filter: blur(5px); }
.offiglass-access-error .access-error-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-inline: auto;
  border-radius: 15px;
  background: #e9f2f9;
  color: #1a577e;
}
.offiglass-access-error svg { width: 25px; height: 25px; }
.offiglass-access-error h2 { margin: 13px 0 6px; font-size: 1.3rem; }
.offiglass-access-error p { margin: 0; color: #354f65; line-height: 1.55; }
.offiglass-access-error .access-error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.offiglass-access-error button, .offiglass-access-error a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid #cbddea;
  border-radius: 11px;
  background: #f1f7fb;
  color: #123956;
  font: 650 .92rem system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.offiglass-access-error a { border-color: #0e7540; background: #0e7540; color: #fff; }
.offiglass-access-error a[hidden] { display: none; }

#techLogin.tech-login:not([hidden]) {
  background: radial-gradient(ellipse at 95% 95%, #08775b 0%, transparent 47%),
    radial-gradient(ellipse at 0% 0%, #1d5570 0%, transparent 57%), #071e36 !important;
  color: #fff;
}
#techLogin .login-card {
  width: min(100%, 470px);
  padding: clamp(22px, 5vw, 36px);
  background: linear-gradient(135deg, #132c42ed, #125447b8);
  border: 1px solid #ffffff35;
  border-radius: 24px;
  box-shadow: 0 24px 64px #071e3655;
}
#techLogin .login-logo-wrap { margin-bottom: 16px; }
#techLogin h1 { margin: 0; color: #fff; text-align: center; font-size: clamp(26px, 6vw, 37px); }
#techLogin .muted { margin: 8px 0 20px; text-align: center; color: #c4d9e5; }
#techLogin label { color: #edf6ff; }
#techLogin input:not([type="checkbox"]) { background: #102d42; color: #fff; border-color: #7195a8; }
#techLogin #techPasswordToggle { background: #204a63; color: #def5ff; }
#techLogin #techLoginButton { background: #10823d; color: #fff; }
#techLogin .full-app-link { color: #d6f9ec; }

@media (max-width: 900px) {
  html:is(.offiglass-login-page,:has(#loginScreen:not([hidden]),#techLogin:not([hidden]))) { background: #071e36; overscroll-behavior-y: none; }
  html:is(.offiglass-login-page,:has(#loginScreen:not([hidden]),#techLogin:not([hidden]))) body { background: #071e36; overscroll-behavior-y: none; }
  #login.login-screen, #loginScreen.login-screen, #techLogin.tech-login:not([hidden]) {
    min-height: 100svh !important;
    align-items: flex-start !important;
    padding: max(18px, env(safe-area-inset-top)) 14px calc(44px + env(safe-area-inset-bottom)) !important;
    scroll-padding-bottom: 28px;
  }
  #login .login-inner { gap: 16px; }
  #login .login-brand h1 { font-size: clamp(24px, 5.8vw, 34px); }
  #login .login-brand img { max-width: min(57vw, 240px); margin-bottom: 12px; }
  #login .login-panel { padding: clamp(16px, 4vw, 26px); }
  #login .login-panel h2 { margin-top: 0; }
  #loginScreen .login-card { width: min(100%, 430px); padding: clamp(18px, 5vw, 28px); }
  #loginScreen .login-card h1 { margin-block: 10px; }
  #login input, #loginScreen input, #techLogin input { font-size: 16px !important; }
}
