/* Shared account entry surfaces, isolated from workspace card/modal sizing. */
#password-change {
  background: var(--app-bg);
  padding: 32px 20px;
  color: var(--text);
}
.account-frame {
  width: min(100%, 440px);
}
.account-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.5px;
  text-decoration: none;
  color: inherit;
}
.account-brand img {
  display: block;
  flex-shrink: 0;
  border-radius: 9px;
}
.account-frame > .account-brand {
  justify-content: center;
  margin-bottom: 24px;
}
#password-change-form.account-card,
#auth .auth-panel.account-card {
  width: 100%;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 8px 32px #07143706;
  margin: 0;
}
#password-change-form.account-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.account-emblem {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.account-emblem i {
  font-size: 24px;
}
#password-change-form h1,
#auth .auth-panel h2 {
  margin: 0 0 8px;
  font-size: 23px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.5px;
}
.account-heading {
  margin-bottom: 4px;
}
.account-card .muted {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
}
.account-card .mt-field {
  margin: 0;
  gap: 7px;
}
.account-card .kt-form-label {
  font-size: 13px;
  font-weight: 550;
}
#password-change-form input,
#auth-form input {
  width: 100%;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid var(--input, #dbdfe9);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-sizing: border-box;
}
#password-change-form input:focus,
#auth-form input:focus {
  border-color: var(--brand);
  outline: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent);
}
.account-password {
  position: relative;
  min-width: 0;
}
#password-change-form .account-password input,
#auth-form .account-password input,
#member-form .account-password input {
  padding-right: 46px;
}
.account-password > .password-visibility {
  position: absolute;
  right: 3px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  box-shadow: none;
  border-radius: 6px;
}
.password-visibility i {
  font-size: 19px;
}
.password-visibility:hover {
  color: var(--brand);
  background: var(--brand-soft);
}
.account-card button:focus-visible,
.account-brand:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
.account-card .account-help {
  margin: -8px 0 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.6;
}
.account-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 2px;
}
.account-card .primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  margin: 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}
.account-card .primary i {
  font-size: 18px;
}
#password-change-logout.account-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
}
.account-back:hover {
  color: var(--text);
  background: var(--surface-soft);
}
.account-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 18px 0 0;
}
.account-card .account-error {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, #e34858 22%, var(--surface));
  background: color-mix(in srgb, #e34858 7%, var(--surface));
  color: #d83249;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}
.account-error[hidden] {
  display: none;
}
#auth.auth {
  padding: 36px;
  gap: 36px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  max-width: 1280px;
  margin: auto;
}
#auth .intro {
  border-radius: 20px;
  padding: clamp(28px, 5vw, 64px);
  min-height: min(680px, calc(100dvh - 72px));
}
#auth .intro .logo {
  margin-bottom: 48px;
}
#auth .intro h1 {
  font-size: clamp(30px, 3.4vw, 44px);
  letter-spacing: -1.2px;
}
#auth .auth-panel {
  max-width: 440px;
}
#auth-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}
#auth #auth-switch {
  display: block;
  width: 100%;
  margin: 18px 0;
  padding: 8px 0;
  text-align: center;
  color: var(--brand);
  font-size: 13px;
}
#auth .auth-panel > .small {
  font-size: 11px;
  text-align: center;
  line-height: 1.65;
}
@media (max-width: 760px) {
  #auth.auth {
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    min-height: 100dvh;
  }
  #auth.auth[hidden] {
    display: none;
  }
  #auth .intro {
    display: block;
    min-height: 0;
    padding: 0;
    background: transparent;
    color: var(--text);
  }
  #auth .intro .logo {
    justify-content: center;
    margin: 0;
  }
  #auth .intro > :not(.logo) {
    display: none;
  }
  #auth .auth-panel.account-card,
  #password-change-form.account-card {
    padding: 24px;
    border-radius: 12px;
  }
  #password-change {
    padding: 24px 16px;
  }
  .account-frame > .account-brand {
    margin-bottom: 20px;
  }
  #password-change-form h1,
  #auth .auth-panel h2 {
    font-size: 22px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .password-visibility {
    transition:
      color 0.15s,
      background 0.15s;
  }
}
#password-change-form .kt-form-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
}
#auth-form .mt-field {
  margin: 0;
}
