/* Authentication has its own stylesheet so dashboard layout cannot affect it.
   The two blue planes retain the supplied Ralitec wallpaper's geometry. */
:root {
  color-scheme: light;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 100%;
  color: #29343a;
  background: #166880;
  --brand: #237b9a;
  --brand-dark: #166880;
  --line: #b8c6ce;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; }
body.login-page {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  background: #166880;
  background-image: linear-gradient(155deg, #237b9a 0%, #237b9a 44%, #166880 44%, #166880 100%);
  background-repeat: no-repeat;
  color: #29343a;
  line-height: 1.5;
}
.login-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: clamp(1rem, 4vw, 3rem);
}
.login-card {
  width: 100%;
  max-width: 26rem;
  min-width: 0;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  background: #fff;
  border: 1px solid #ffffff;
  border-radius: .5rem;
  box-shadow: 0 .75rem 2.5rem #12394724;
  overflow-wrap: anywhere;
}
.login-brand {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 2rem;
  border-radius: .25rem;
}
.login-brand img {
  display: block;
  width: 15rem;
  max-width: 100%;
  height: auto;
  aspect-ratio: 535 / 195;
}
.login-card h1 {
  margin: 0 0 1.5rem;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.3;
}
.login-card form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .5rem; min-width: 0; }
.field label { font-size: .875rem; font-weight: 600; }
.field input {
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  padding: .625rem .75rem;
  border: 1px solid var(--line);
  border-radius: .25rem;
  background: #fff;
  color: #29343a;
  font: inherit;
  line-height: 1.5;
}
.field input:hover { border-color: #8499a5; }
.field input:focus { border-color: var(--brand); }
.field input[aria-invalid="true"] { border-color: #a12222; }
.field small, .field-help, .login-note {
  margin: 0;
  color: #54646d;
  font-size: .875rem;
  line-height: 1.5;
}
.login-note { margin: 0 0 1.25rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3rem;
  padding: .625rem 1rem;
  border: 1px solid var(--brand-dark);
  border-radius: .25rem;
  background: var(--brand-dark);
  color: #fff;
  font: inherit;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  white-space: normal;
  cursor: pointer;
}
.button:hover { background: #12576b; border-color: #12576b; }
.button:disabled { opacity: .6; cursor: wait; }
.form-error, .form-status {
  margin: 0;
  padding: .75rem;
  border: 1px solid #e6b9b9;
  border-radius: .25rem;
  background: #fff4f4;
  color: #912020;
  font-size: .875rem;
  line-height: 1.5;
}
.form-status { border-color: #c7dde5; background: #eef7fa; color: #17556a; }
.form-error:empty, .form-status:empty { display: none; }
.login-help {
  margin: 1.25rem 0 0;
  color: #54646d;
  font-size: .875rem;
  text-align: center;
}
.login-help a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .375rem .25rem;
  color: var(--brand-dark);
  text-underline-offset: .2em;
}
.login-help a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}
@media (max-width: 30rem) {
  .login-shell { padding: 1rem; }
  .login-card { padding: 1.5rem; }
  .login-brand { margin-bottom: 1.75rem; }
}
@media (forced-colors: active) {
  .login-card { border-color: CanvasText; box-shadow: none; }
  .button { border-color: ButtonText; }
  .form-error, .form-status { border-color: CanvasText; }
}