body.auth-pending > .sidebar,
body.auth-pending > .main,
body.auth-required > .sidebar,
body.auth-required > .main,
body.password-change-required > .sidebar,
body.password-change-required > .main {
  visibility: hidden;
}

body.auth-pending,
body.auth-required,
body.password-change-required {
  min-width: 0;
  background: #f5f8fb;
}

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

.login-page {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 32px 20px 72px;
  background:
    radial-gradient(circle at 14% 15%, rgba(15, 200, 194, .15), transparent 31%),
    radial-gradient(circle at 88% 85%, rgba(57, 114, 189, .12), transparent 32%),
    #f7fafc;
}

.login-card {
  width: min(460px, 100%);
  padding: 38px;
  border: 1px solid #e2e9f1;
  border-radius: 22px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 24px 70px rgba(6, 24, 46, .12);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  color: #09233d;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.05;
}

.login-brand > span {
  color: #09bdb8;
  font-size: 45px;
  line-height: .6;
}

.login-heading > span {
  color: #08a8a4;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.login-heading h1 {
  margin: 10px 0 8px;
  color: #0c1a2d;
  font-size: 32px;
  letter-spacing: -.9px;
}

.login-heading p {
  margin: 0 0 30px;
  color: #718199;
  font-size: 15px;
  line-height: 1.55;
}

#login-form label,
#login-code-form label,
#register-form label,
#forgot-password-form label,
#password-change-form label {
  display: block;
  margin-bottom: 18px;
  color: #596a82;
  font-size: 14px;
  font-weight: 700;
}

#login-form input,
#login-code-form input,
#register-form input,
#forgot-password-form input,
#password-change-form input {
  height: 56px;
  margin-top: 9px;
  font-size: 16px;
}

#login-submit,
#login-code-submit,
#register-submit,
#forgot-password-submit,
#password-change-submit {
  justify-content: center;
  width: 100%;
  height: 56px;
  margin-top: 5px;
}

#login-submit:disabled,
#login-code-submit:disabled,
#register-submit:disabled,
#forgot-password-submit:disabled,
#password-change-submit:disabled {
  cursor: wait;
  opacity: .7;
}

.password-change-logout {
  display: block;
  margin: 16px auto 0;
  border: 0;
  background: transparent;
  color: #718199;
  font: 700 13px Manrope, Arial, sans-serif;
  cursor: pointer;
}

.password-change-logout:hover,
.password-change-logout:focus-visible {
  color: #079f9b;
}

.login-error {
  min-height: 21px;
  margin: -4px 0 12px;
  color: #d43a46;
  font-size: 13px;
  font-weight: 700;
}

.login-error.is-success {
  color: #087e79;
}

.login-code-destination {
  margin: -8px 0 22px;
  color: #596a82;
  font-size: 14px;
  line-height: 1.55;
}

#login-code {
  letter-spacing: .28em;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
}

.forgot-password-button,
.forgot-password-back {
  display: block;
  margin: -8px 0 12px auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #079f9b;
  font: 700 13px Manrope, Arial, sans-serif;
  cursor: pointer;
}

.forgot-password-back {
  margin: 17px auto 0;
  color: #718199;
}

.forgot-password-button:hover,
.forgot-password-button:focus-visible,
.forgot-password-back:hover,
.forgot-password-back:focus-visible {
  color: #06b8b2;
}

.auth-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 5px;
  margin: -10px 0 24px;
  padding: 5px;
  border-radius: 11px;
  background: #f0f4f8;
}

.auth-mode-switch button {
  min-height: 42px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #718199;
  font: 700 13px Manrope, Arial, sans-serif;
  cursor: pointer;
}

.auth-mode-switch button.active {
  background: #fff;
  color: #079f9b;
  box-shadow: 0 3px 10px rgba(12, 35, 61, .08);
}

#register-form.hidden,
#login-form.hidden,
#login-code-form.hidden,
#forgot-password-form.hidden,
.auth-mode-switch[hidden],
.nav a[hidden],
.nav a.hidden {
  display: none;
}

.login-footer {
  position: fixed;
  bottom: 22px;
  left: 20px;
  right: 20px;
  margin: 0;
  color: #8a98aa;
  font-size: 12px;
  text-align: center;
}

.profile-link {
  display: flex;
  min-width: 0;
  flex: 1;
  gap: 11px;
  align-items: center;
  border-radius: 9px;
  color: #fff;
  text-decoration: none;
}

.profile-link:hover .profile-copy b,
.profile-link:focus-visible .profile-copy b {
  color: #14d6cf;
}

.profile-link:focus-visible {
  outline: 2px solid #14d6cf;
  outline-offset: 5px;
}

.profile-copy {
  min-width: 0;
}

.profile-copy b {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .18s ease;
}

.profile-copy small {
  display: block;
  max-width: 155px;
  color: #7f91a8;
  font-size: 9px;
  font-weight: 650;
  line-height: 1.35;
  white-space: pre-line;
}

.profile > button {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  margin-left: auto;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #aebed2;
  font: 700 20px Manrope, Arial, sans-serif;
  cursor: pointer;
}

.profile > button:hover,
.profile > button:focus-visible {
  background: #17324c;
  color: #fff;
}

body.roleless-user .brand,
body.roleless-user .space-switcher,
body.roleless-user .nav,
body.roleless-user .sidebar-toggle {
  display: none;
}

body.roleless-user .profile {
  border-top: 0;
}

.account-topbar {
  margin-bottom: 30px;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  gap: 24px;
  align-items: start;
}

.account-card {
  margin: 0;
  padding: 30px;
}

.account-card-heading {
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e8edf4;
}

.account-card-heading h2 {
  margin: 0 0 8px;
  font-size: 21px;
}

.account-card-heading p {
  margin: 0;
  color: #8190a7;
  font-size: 13px;
  line-height: 1.55;
}

.account-name-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.account-current-password small {
  display: block;
  margin-top: 7px;
  color: #98a5b7;
  font-size: 12px;
  font-weight: 500;
}

.account-form-message {
  min-height: 20px;
  margin: -5px 0 14px;
  font-size: 13px;
  font-weight: 700;
}

.account-form-message.error { color: #d24c4c; }
.account-form-message.success { color: #169071; }

.account-card .primary-button {
  justify-content: center;
}

@media (max-width: 600px) {
  .login-page { padding: 16px 14px 54px; }
  .login-card { padding: 28px 22px; border-radius: 17px; }
  .login-brand { margin-bottom: 30px; }
  .login-heading h1 { font-size: 28px; }
}

@media (max-width: 1100px) {
  .account-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .account-name-grid { grid-template-columns: 1fr; gap: 0; }
  .account-card { padding: 22px; }
}
