html[data-theme] .login-site {
  --login-ink: var(--lab-ink);
  --login-accent: #087d77;
  background: var(--lab-paper);
  color: var(--login-ink);
  padding: 48px 32px;
  display: grid;
  align-content: center;
  max-width: none;
  min-height: 100dvh;
  margin: 0;
}
.login-site-grid { width: 100%; max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(40px, 6vw, 88px); align-items: center; }
.login-poster { display: grid; justify-items: center; text-align: center; min-width: 0; }
.login-logo-card { width: min(100%, 440px); display: grid; place-items: center; padding: 0; margin: 0; }
.login-logo-card img { display: block; width: 100%; max-width: 100%; height: auto; object-fit: contain; }
html[data-theme] .login-reference-card { margin: 0; width: 100%; background: var(--lab-paper); border: 1px solid var(--lab-border); border-radius: 12px; padding: 36px; box-shadow: none; color: var(--login-ink); position: relative; overflow: visible; }
html[data-theme] .login-reference-card::before, html[data-theme] .login-reference-card::after { display: none; }
html[data-theme] .login-reference-card h2 { font-family: "Segoe UI", Arial, sans-serif; color: var(--login-ink); font-size: 28px; font-weight: 650; letter-spacing: -.03em; line-height: 1.25; margin: 0 0 12px; }
html[data-theme] .login-reference-card p { font-size: 14px; color: var(--lab-muted); margin: 0 0 28px; line-height: 1.6; }
html[data-theme] .login-reference-card label { display: block; color: var(--login-ink); font-size: 14px; font-weight: 600; margin: 22px 0 8px; }
html[data-theme] .login-reference-card select, html[data-theme] .login-reference-card #login-password { width: 100%; min-height: 48px; background: var(--lab-soft); color: var(--login-ink); border: 1px solid var(--lab-border); border-radius: 6px; font-size: 16px; padding: 12px; }
.login-password-field { position: relative; }
html[data-theme] .login-reference-card #login-password { padding-right: 60px; }
html[data-theme] #login-password-toggle { position: absolute; top: 2px; right: 2px; bottom: 2px; min-width: 44px; width: 44px; display: grid; place-items: center; padding: 0; background: transparent; color: var(--lab-muted); border-radius: 4px; }
html[data-theme] #login-password-toggle:hover { background: var(--lab-soft); }
html[data-theme] .login-reference-card .button.primary { width: 100%; min-height: 48px; margin-top: 24px; color: #fff; background: var(--login-accent); border: 1px solid var(--login-accent); border-radius: 6px; box-shadow: none; font-weight: 600; }
html[data-theme] .login-reference-card .button.primary:hover:not(:disabled) { background: #06635e; }
html[data-theme] .login-reference-card #login-error { margin: 14px 0 0; color: #a73524; font-size: 13px; min-height: 0; }
html[data-theme] .login-reference-card #login-error:empty { display: none; }
.login-reference-card small { display: block; margin-top: 24px; font-family: "Segoe UI", Arial, sans-serif; font-size: 12px; color: var(--lab-muted); text-align: center; }
html[data-theme] .login-site :focus-visible { outline: 3px solid #b46a18; outline-offset: 3px; }
@media (min-width: 621px) and (max-height: 700px) {
  html[data-theme] .login-site { padding-bottom: 20px; }
  .login-site-grid { margin: 12px auto; }
  .login-logo-card { width: min(100%, 400px); }
  .login-logo-card img { width: 100%; }
  html[data-theme] .login-reference-card { padding: 26px 32px; }
  html[data-theme] .login-reference-card h2 { margin-bottom: 12px; }
  html[data-theme] .login-reference-card p { margin-bottom: 16px; }
  html[data-theme] .login-reference-card label { margin-top: 16px; }
  .login-reference-card small { margin-top: 22px; }
}
@media (max-width: 850px) {
  .login-site-grid { grid-template-columns: minmax(0, 1fr); max-width: 440px; gap: 32px; }
  .login-logo-card { width: min(100%, 320px); }
}
@media (max-width: 620px) {
  html[data-theme] .login-site { padding: 24px 20px 36px; }
  .login-site-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; margin: 0 auto; }
  .login-poster { display: grid; }
  .login-logo-card { width: min(100%, 280px); }
  .login-logo-card img { width: 100%; }
  html[data-theme] .login-reference-card { padding: 28px 24px; }
  html[data-theme] .login-reference-card h2 { font-size: 25px; }
}

#login-password-toggle .password-eye-off { display: none; }
#login-password-toggle[aria-pressed="true"] .password-eye { display: none; }
#login-password-toggle[aria-pressed="true"] .password-eye-off { display: block; }

html[data-theme="dark"] .login-site { background: var(--lab-background); }
html[data-theme="dark"] .login-reference-card #login-error { color: #ffb4a5; }
