#dialog:has(.auth-layout){max-width:min(39rem,calc(100vw - 2rem));width:100%;border:0}
#dialog:has(.auth-layout) .dialog-head{margin-bottom:1rem}
.auth-layout{display:grid;gap:1.35rem}
.auth-cover{position:relative;isolation:isolate;display:grid;align-content:end;gap:.4rem;border-radius:12px;overflow:hidden;background:#133b8e;color:#fff;padding:1.25rem 1.5rem;min-height:7.2rem}
.auth-cover img{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;object-position:50% 42%}
.auth-cover::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(95deg,#0d2858 0%,#103c86ee 40%,#12387742)}
.auth-cover strong{font-size:2.4rem;line-height:1;letter-spacing:-.05em}
.auth-cover span{font-size:.8rem;font-weight:600}
.auth-fields p{margin:0 0 .65rem}
.auth-fields .primary{justify-content:center}
.auth-password{display:grid;gap:5px}
.auth-password-control{position:relative}
#auth-password{width:100%;padding-right:3.2rem}
#auth-password::-ms-reveal{display:none}
.auth-reveal{position:absolute;inset-block:1px;right:2px;width:44px;display:grid;place-items:center;border:0;border-radius:6px;background:transparent;color:#31588c;cursor:pointer}
.auth-reveal:hover{background:#edf3fc}
.auth-reveal:focus-visible{outline:2px solid #3868b6;outline-offset:-3px}
.auth-options,.auth-tiu{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:.7rem}
.auth-link{padding:.4rem 0;border:0;color:#17438e;background:none;font:inherit;font-weight:600;cursor:pointer}
.auth-link:hover{text-decoration:underline}
.auth-tiu{width:100%;padding:.85rem 1rem;border:1px solid #c4d3e9;border-radius:.5rem;background:#f2f6fc;color:#153771;font:inherit;font-weight:600;cursor:pointer}
.auth-tiu:hover{background:#e5edfb}
.breadcrumb .back-button{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-height:36px;padding:.35rem .8rem;margin-right:.3rem;color:#164393;background:white;border:1px solid #c8d5e7;border-radius:8px;font-size:.85rem;font-weight:600;text-decoration:none;flex-shrink:0;transition:background .16s,border-color .16s}
.back-button:hover{background:#eaf1fc;border-color:#8da9d5}
.back-button:focus-visible,.auth-link:focus-visible,.auth-tiu:focus-visible{outline:3px solid #3868b6;outline-offset:3px}
.back-button .icon{width:16px;height:16px}
input[type=file]{padding:.32rem;max-width:100%;color:#51647d}
input[type=file]::file-selector-button{font:inherit;font-weight:600;color:#173f84;background:#eaf1fb;border:1px solid #c8d7ed;border-radius:6px;padding:.5rem .8rem;margin-right:.65rem;cursor:pointer;transition:background .16s}
input[type=file]:hover::file-selector-button{background:#dae7fa}
@media(max-width:540px){.breadcrumb{flex-wrap:wrap}.auth-cover{min-height:6rem}.auth-options{gap:.5rem;flex-wrap:wrap}.auth-link{font-size:.9rem}}

#action-form [hidden]{display:none!important}

@media(max-width:400px){
  .bar .identity{gap:6px}
  .bar .identity img{width:58px}
  .bar .profile-shortcut{display:inline-grid;width:35px;height:35px;padding:0;place-items:center}
  .profile-shortcut span{display:none}
}
