.auth-page,.portal-page {
  min-height:100vh;
  background:var(--paper);
}

.auth-header,.portal-header {
  height:92px;
  padding:0 5.5%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  background:var(--paper);
}

.auth-back {
  padding:9px 0;
  border-bottom:1px solid #9daaa2;
  font-size:12px;
}

.auth-main {
  min-height:calc(100vh - 92px);
  display:grid;
  grid-template-columns:1.06fr .94fr;
}

.auth-visual {
  position:relative;
  overflow:hidden;
  min-height:650px;
  padding:78px 10% 48px;
  background:var(--navy);
  color:#fff;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.auth-visual>div:first-child,.security-points {
  position:relative;
  z-index:2;
}

.auth-visual .eyebrow {
  color:#bdcbc7;
  display:flex;
  align-items:center;
  gap:10px;
}

.auth-visual .eyebrow span {
  width:17px;
  height:1px;
  background:var(--yellow);
}

.auth-visual h1 {
  margin-top:30px;
  font-size:clamp(38px,4.5vw,62px);
}

.auth-visual>div:first-child>p:last-child {
  max-width:500px;
  color:#b7c8c8;
  margin-top:24px;
  font-size:13px;
  line-height:2;
}

.auth-contours {
  position:absolute;
  inset:0;
  opacity:.34;
  mix-blend-mode:screen;
}

.auth-contours:after {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,var(--navy) 0%,transparent 75%),linear-gradient(0deg,var(--navy) 0%,transparent 55%);
}

.auth-contours img {
  width:100%;
  height:100%;
  object-fit:cover;
}

.security-points {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  list-style:none;
  padding:0;
  margin:0;
  border-top:1px solid #5a7174;
}

.security-points li {
  padding:19px 12px 0 0;
  color:#c1ceca;
  font-size:10px;
}

.security-points span {
  display:block;
  color:var(--yellow);
  font-size:9px;
  margin-bottom:8px;
}

.login-panel {
  padding:60px 9%;
  display:flex;
  align-items:center;
  justify-content:center;
}

.login-panel-inner {
  width:min(430px,100%);
}

.panel-kicker,.portal-welcome>.eyebrow,.workspace-heading .eyebrow,.admin-overview .eyebrow {
  color:#6d7b78;
  font-size:9px;
  letter-spacing:.15em;
}

.login-panel h2 {
  margin-top:9px;
  font-size:34px;
}

.panel-intro {
  margin-top:8px;
  color:var(--muted);
  font-size:12px;
}

#login-form {
  margin-top:26px;
}

#login-form>label,.account-signup>label,.password-label label,.login-recovery-form label {
  display:block;
  font-size:11px;
  color:#566667;
  margin-bottom:7px;
}

#login-form>input,.account-signup>input,.password-field {
  margin-bottom:19px;
}

#login-form input,.account-signup input,.login-recovery-form input {
  width:100%;
  height:49px;
  padding:0 15px;
  border:1px solid #bdc6bd;
  background:#fff;
  color:var(--ink);
  border-radius:0;
  outline:none;
}

#login-form input:focus,.account-signup input:focus,.login-recovery-form input:focus {
  border-color:#8b6b25;
  box-shadow:0 0 0 3px #e4cb8c66;
}

.account-signup {
  margin-top:20px;
}

.signup-profile {
  min-inline-size:0;
  margin:0 0 19px;
  padding:12px 14px 14px;
  border:1px solid var(--line);
  background:#f7f5ec;
}

.signup-profile legend {
  padding:0 6px;
  color:var(--navy);
  font-size:13px;
  font-weight:600;
}

.signup-profile-row {
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:end;
  gap:12px;
}

.signup-avatar-preview {
  display:grid;
  place-items:center;
  width:56px;
  height:56px;
  border-radius:50%;
  overflow:hidden;
  background:#efe4ba;
  color:#614918;
  font-size:24px;
  font-weight:700;
  line-height:1;
}

.signup-avatar-preview img {
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
  object-fit:cover;
}

.signup-profile label {
  display:block;
  margin-bottom:7px;
  color:#566667;
  font-size:11px;
}

.signup-avatar-label {
  margin-top:12px;
}

.signup-avatar-label span {
  margin-left:4px;
  color:var(--muted);
}

.account-signup .signup-avatar-file {
  height:auto;
  padding:6px;
  font-size:12px;
}

.signup-avatar-file::file-selector-button {
  padding:5px 8px;
  margin-right:7px;
  border:1px solid var(--line);
  background:var(--paper);
  color:var(--navy);
  cursor:pointer;
}

.signup-avatar-note,.signup-avatar-status,.signup-avatar-reset {
  margin-top:6px;
  color:var(--muted);
  font-size:11px;
}

.signup-avatar-status {
  color:#9c3a32;
}

.signup-avatar-status:empty {
  margin:0;
}

.signup-avatar-reset {
  padding:0;
  border:0;
  background:transparent;
  color:#65501a;
  text-decoration:underline;
  text-underline-offset:3px;
}

.password-label {
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.password-label button {
  border:0;
  background:transparent;
  color:#6e623e;
  font-size:10px;
  padding:0 0 7px 10px;
}

.password-label-actions {
  display:flex;
  align-items:center;
}

.password-label .login-recovery-link {
  color:var(--muted);
  text-decoration:underline;
  text-underline-offset:3px;
}

.password-label .login-recovery-link:hover {
  color:var(--ink);
}

.password-field {
  position:relative;
}

.password-field input {
  padding-right:45px;
}

.password-field span {
  position:absolute;
  right:15px;
  top:14px;
  color:#75847e;
  letter-spacing:2px;
}

.login-submit {
  width:100%;
  height:51px;
  padding:0 20px;
  border:0;
  background:var(--yellow);
  color:var(--navy-dark);
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-weight:600;
}

.login-submit:hover {
  background:#f7d578;
}

.login-submit:disabled {
  cursor:wait;
  opacity:.7;
}

.form-status {
  min-height:24px;
  margin-top:10px;
  font-size:11px;
  color:#657571;
}

.form-status.is-error,.portal-loading.is-error {
  color:#9c3a32;
}

.form-status.is-success {
  color:#3e6748;
}

.login-help {
  display:flex;
  align-items:flex-start;
  gap:10px;
  border-top:1px solid var(--line);
  margin-top:13px;
  padding-top:18px;
  color:#5f6c6d;
  font-size:10px;
}

.login-help .status-dot {
  margin-top:6px;
}

.login-help[hidden] {
  display:none;
}

.auth-inline-link {
  color:#65501a;
  text-decoration:underline;
  text-underline-offset:3px;
}

.transport-note {
  margin-top:14px;
  font-size:9px;
  line-height:1.8;
  color:#7a6a3f;
}

.portal-header {
  position:sticky;
  top:0;
  z-index:20;
}

.avatar-settings-dialog,.login-recovery-dialog {
  width:min(calc(100% - 28px), 420px);
  max-height:calc(100% - 28px);
  padding:20px;
  border:1px solid var(--line);
  border-top:4px solid var(--yellow);
  background:#fbfaf5;
  color:var(--ink);
}

.avatar-settings-dialog::backdrop,.login-recovery-dialog::backdrop {
  background:rgb(16 44 56 / 55%);
}

.avatar-settings-heading,.avatar-settings-current,.avatar-settings-actions,.login-recovery-heading {
  display:flex;
  align-items:center;
  gap:10px;
}

.avatar-settings-heading,.login-recovery-heading {
  justify-content:space-between;
}

.avatar-settings-heading h2,.login-recovery-heading h2 {
  font-size:22px;
}

.avatar-settings-current {
  margin-top:14px;
  color:var(--muted);
  font-size:13px;
}

.avatar-settings-dialog input[type="file"] {
  min-width:0;
  margin-bottom:5px;
  padding:6px;
  font-size:13px;
}

.avatar-settings-actions {
  flex-wrap:wrap;
  margin-top:14px;
}

.avatar-settings-actions .button,.avatar-settings-secondary,.login-recovery-dialog .button,.login-recovery-close {
  min-height:36px;
  padding:6px 10px;
  font-size:13px;
}

.avatar-settings-secondary,.login-recovery-close {
  border:1px solid #a7b6aa;
  background:transparent;
  color:var(--ink);
}

.avatar-settings-secondary:hover,.login-recovery-close:hover {
  background:#eef1eb;
}

.avatar-settings-status:empty {
  min-height:0;
  margin:0;
}

.login-recovery-note {
  margin-top:7px;
  color:var(--muted);
  font-size:12px;
}

.login-recovery-form {
  margin-top:14px;
}

.login-recovery-form input {
  height:39px;
  margin-bottom:10px;
  padding:0 10px;
  font-size:14px;
}

.login-recovery-reset {
  padding-top:13px;
  border-top:1px solid var(--line);
}

.login-recovery-reset > .login-recovery-note {
  margin:0 0 10px;
}

.login-recovery-dialog .form-status {
  min-height:0;
  font-size:12px;
}

.login-recovery-dialog .form-status:empty {
  margin:0;
}

.login-recovery-dialog .button[aria-disabled="true"] {
  cursor:wait;
  opacity:.65;
}

.login-recovery-dialog [hidden] {
  display:none;
}

.portal-main {
  max-width:1440px;
  margin:auto;
}

.portal-welcome {
  min-height:330px;
  padding:70px 6%;
  background:var(--navy);
  color:#fff;
}

.portal-welcome h1 {
  margin:22px 0 17px;
  font-size:clamp(36px,4vw,58px);
}

.portal-welcome > p:not(.eyebrow) {
  max-width:610px;
  color:#b9c9c8;
  font-size:12px;
  line-height:2;
}

.portal-community-link {
  margin-top:24px;
}

.tool-workspace {
  padding:66px 6%;
}

.workspace-heading {
  display:flex;
  align-items:end;
  justify-content:space-between;
  margin-bottom:28px;
}

.workspace-heading h2,.admin-overview h2 {
  margin-top:9px;
}

.portal-tools {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  border:1px solid var(--line);
}

.portal-tools article {
  min-height:260px;
  padding:27px;
  display:flex;
  flex-direction:column;
}

.portal-tools article+article {
  border-left:1px solid var(--line);
}

.portal-tools article>span {
  color:#788783;
  font-size:9px;
  letter-spacing:.1em;
}

.portal-tools h3 {
  margin:48px 0 12px;
  font-size:18px;
}

.portal-tools p {
  color:var(--muted);
  font-size:11px;
}

.portal-tools button {
  margin-top:auto;
  padding:9px 12px;
  border:1px solid var(--line);
  background:transparent;
  color:#87918c;
  font-size:10px;
  cursor:not-allowed;
}

.admin-overview {
  margin:0 6% 70px;
  padding:35px;
  background:#e4e9df;
  display:flex;
  justify-content:space-between;
  gap:40px;
}

.admin-overview[hidden] {
  display:none;
}

.admin-overview>div>p:last-child {
  color:var(--muted);
  margin-top:10px;
  font-size:11px;
}

.admin-overview dl {
  display:grid;
  grid-template-columns:repeat(2,130px);
  gap:1px;
  margin:0;
}

.admin-overview dl>div {
  padding:17px;
  background:var(--paper);
}

.admin-overview dt {
  color:var(--muted);
  font-size:10px;
}

.admin-overview dd {
  margin:5px 0 0;
  font-size:27px;
}

.portal-loading {
  padding:90px 6%;
  text-align:center;
  color:var(--muted);
}

@media(max-width:900px) {
  .auth-main {
    grid-template-columns:1fr 1fr;
  }
  .auth-visual {
    padding:60px 8% 40px;
  }
  .security-points {
    grid-template-columns:1fr;
  }
  .security-points li {
    display:flex;
    gap:12px;
    padding-top:10px;
  }
  .security-points span {
    margin:0;
  }
  .login-panel {
    padding:45px 7%;
  }
  .portal-tools {
    grid-template-columns:repeat(2,1fr);
  }
  .portal-tools article:nth-child(3) {
    border-left:0;
    border-top:1px solid var(--line);
  }
  .portal-tools article:nth-child(4) {
    border-top:1px solid var(--line);
  }
}

@media(max-width:620px) {
  .auth-header,.portal-header {
    height:78px;
    padding:0 5%;
  }
  .auth-header .brand strong,.portal-header .brand strong {
    font-size:16px;
  }
  .auth-header .brand img,.portal-header .brand img {
    width:36px;
    height:36px;
  }
  .auth-back {
    font-size:10px;
  }
  .auth-main {
    display:block;
  }
  .auth-visual {
    min-height:380px;
    padding:50px 6% 32px;
  }
  .auth-visual h1 {
    font-size:39px;
  }
  .auth-visual>div:first-child>p:last-child {
    font-size:11px;
  }
  .security-points {
    grid-template-columns:repeat(3,1fr);
  }
  .security-points li {
    display:block;
    font-size:8px;
    padding-top:14px;
  }
  .security-points span {
    margin-bottom:5px;
  }
  .login-panel {
    padding:45px 6% 55px;
  }
  .portal-welcome {
    min-height:300px;
    padding:55px 6%;
  }
  .portal-welcome h1 {
    font-size:36px;
  }
  .tool-workspace {
    padding:48px 6%;
  }
  .portal-tools {
    grid-template-columns:1fr;
  }
  .portal-tools article {
    min-height:215px;
  }
  .portal-tools article+article {
    border-left:0;
    border-top:1px solid var(--line);
  }
  .portal-tools h3 {
    margin-top:33px;
  }
  .admin-overview {
    flex-direction:column;
    margin:0 6% 50px;
    padding:25px;
  }
  .admin-overview dl {
    grid-template-columns:1fr 1fr;
  }
}

@media(max-width:380px) {
  .portal-header .brand {
    gap:7px;
  }
  .portal-header .brand img {
    width:32px;
    height:32px;
  }
  .portal-header .brand strong {
    font-size:14px;
    white-space:nowrap;
  }
  .portal-header .brand-pending,.portal-header .brand small {
    display:none;
  }
}
