/* Login-only shell, matching the institution frontend without changing workspace styles. */
.auth-page { background: #f4f4f6; min-block-size: 100dvh; padding: 12px; display: grid; align-items: center; --accent: #4038f5; --soft: #efeeff; }
.auth-shell { inline-size: min(100%,1440px); margin-inline: auto; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); min-block-size: calc(100dvh - 24px); padding: 8px; border-radius: 20px; background: var(--surface); box-shadow: 0 16px 64px #2021240a; }
.auth-column { min-inline-size: 0; display: flex; flex-direction: column; padding: 8px clamp(20px,4vw,56px) 4px; }
.auth-brandbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.auth-brandbar .brand { font-size: 18px; padding: 0; }
.auth-brandbar .brand-mark { flex-shrink: 0; }
.auth-brandbar .header-tools { gap: 4px; }
.auth-brandbar button,.auth-brandbar summary { min-height: 44px; }
.auth-main { flex: 1; display: flex; flex-direction: column; justify-content: center; inline-size: min(100%,410px); padding: 12px 0; margin-inline: auto; }
.auth-page .login-card { margin: 0; max-width: none; }
.auth-page h1 { font-size: 26px; line-height: 1.35; letter-spacing: 0; margin-bottom: 8px; }
.auth-page .login-card p { font-size: 13px; line-height: 1.6; margin-bottom: 10px; }
.auth-page .login-form { gap: 10px; margin-block: 10px; }
.auth-page label { font-size: 14px; gap: 6px; }
.auth-page input { width: 100%; font-size: 16px; min-height: 44px; border: 1px solid #8993a3; border-radius: 9px; }
.auth-page input:focus-visible,.auth-page button:focus-visible,.auth-page a:focus-visible,.auth-page summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.password-control { position: relative; margin-top: 6px; }
.password-control:has(button:not([hidden])) input { padding-inline-end: 110px; }
.password-control button { position: absolute; inset-inline-end: 4px; inset-block: 2px; border: 0; background: transparent; color: var(--accent); padding-inline: 10px; font-size: 12px; max-width: 110px; }
.auth-page .primary { min-height: 44px; font-size: 15px; background: #4038f5; color: #fff; border-color: #4038f5; justify-content: center; }
.auth-page .primary:disabled { opacity: .65; cursor: wait; }
.auth-page .captcha { background: var(--page); padding: 8px; border: 1px solid var(--border); border-radius: 10px; }
.captcha-heading { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 4px; font-size: 13px; }
.captcha-heading a { font-size: 12px; min-height: 44px; display: inline-flex; align-items: center; }
.auth-page .captcha-image { inline-size: min(100%,200px); block-size: auto; margin: 0 auto 4px; display: block; }
.auth-page .captcha label { font-size: 12px; }
.auth-page .login-restart { text-align: center; }
.login-restart a { display: inline-flex; align-items: center; min-height: 44px; }
.auth-page .login-support { font-size: 12px; margin: 0; }
.auth-footnote { margin: 0; padding-block: 6px; font-size: 12px; }
.auth-page .alert { overflow-wrap: anywhere; }
.auth-promo { position: relative; isolation: isolate; overflow: hidden; border-radius: 20px; background: #4038f5; color: white; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: clamp(20px,3vw,36px); min-inline-size: 0; }
.auth-promo::before { content: ''; position: absolute; z-index: -1; inline-size: 520px; block-size: 520px; border: 80px solid #ffffff09; border-radius: 50%; inset-inline-end: -280px; inset-block-start: -280px; }
.auth-promo-symbol { font-size: 32px; }
.auth-promo h2 { font-size: clamp(24px,2.5vw,34px); line-height: 1.4; max-width: 480px; }
.auth-promo > p { font-size: 15px; line-height: 1.9; color: #e6e4ff; }
.auth-preview { background: #fff; border: 1px solid #ffffff40; color: #202124; border-radius: 14px; box-shadow: 0 16px 36px #19126930; margin-top: 12px; }
.preview-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #e4e7ec; font-size: 13px; }
.preview-content { padding: 16px; }
.preview-content > p { font-size: 11px; color: #667085; }
.preview-content h3 { font-size: 17px; margin-bottom: 16px; }
.preview-row { display: flex; align-items: center; gap: 12px; padding-block: 10px; border-top: 1px solid #e4e7ec; font-size: 13px; }
.preview-row > span:last-child { margin-inline-start: auto; color: #667085; }
.preview-icon { display: grid; place-items: center; width: 36px; height: 36px; background: #efeeff; color: #4038f5; border-radius: 8px; font-size: 22px; }
html[data-theme=dark] .auth-page { background: var(--page); --accent: #b5b0ff; --soft: #302b55; }
@media(max-width:1000px) { .auth-column { padding-inline: 20px; } .auth-promo { padding: 28px; } .auth-brandbar .brand { font-size: 15px; } }
@media(max-width:767px) { .auth-page { padding: 12px; align-items: start; } .auth-shell { grid-template-columns: minmax(0,1fr); padding: 0; min-block-size: calc(100dvh - 24px); } .auth-promo { display: none; } .auth-column { padding: 16px 24px; } .auth-main { padding-block: 12px; } }
@media(max-width:360px) { .auth-page { padding: 8px; } .auth-column { padding: 16px; } .auth-page h1 { font-size: 28px; } }

/* Short laptop windows keep decorative content from dictating the page height. */
@media(max-height:800px) {
  .auth-preview { margin-top: 0; }
  .preview-top { padding: 10px 16px; }
  .preview-content { padding: 12px 16px; }
  .preview-content h3 { margin-bottom: 8px; }
  .preview-row { padding-block: 8px; }
  .auth-promo-symbol { display: none; }
  .auth-page .captcha label { grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: 10px; }
  .auth-page .captcha-image { margin: 0; }
}
@media(max-height:650px) {
  .auth-page { padding: 8px; }
  .auth-shell { min-block-size: calc(100dvh - 16px); }
  .auth-main { padding-block: 6px; }
  .auth-page .login-form { gap: 8px; }
  .auth-footnote { padding-block: 4px; }
  .auth-preview { display: none; }
}
