/* The pages of the standalone condominium server that render outside the
   portal chrome: the sign-in page and the error pages (plain-layout.ejs).
   The module pages render in the shared portal chrome and bring their own
   styles (condominio.css, the package's sf-directory.css). */

.cd-plain {
  margin: 0;
}

.cd-plain__main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cd-error {
  max-width: 520px;
  text-align: center;
}

.cd-error__code { font-size: 3rem; font-weight: 700; margin: 0; }
.cd-error__actions { display: flex; gap: 0.5rem; justify-content: center; }

.cd-login {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.cd-login__card {
  width: 100%;
  max-width: 400px;
  background: var(--bs-body-bg, #fff);
  border: 1px solid var(--bs-border-color, #e6e8ec);
  border-radius: 0.75rem;
  padding: 2rem;
}

.cd-login__logo {
  /* A tenant logo can be a wide wordmark (Newton 207 is about 11:1): it must
     stay inside the card at a modest size, scaled down, never cropped. */
  display: block;
  max-width: min(100%, 220px);
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 1rem;
}
.cd-login__title { font-size: 1.25rem; margin-bottom: 1.5rem; }
