/* Both modes occupy the same grid cell. The inactive, disabled fieldset keeps
   its layout space so switching modes does not resize the card/background. */
.login-card {
  width: 27rem;
  max-width: 100%;
}

.login-mode-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.login-mode-fields > fieldset {
  grid-area: 1 / 1;
  min-width: 0;
}

.login-mode-fields > fieldset[hidden] {
  display: block !important;
  visibility: hidden;
  pointer-events: none;
}
