:root {
  --login-navy: #2c4152;
  --login-yellow: #ffd400;
  --login-text: #344454;
  --login-muted: #75828c;
  --login-border: #d6dde2;
  --login-background: #eef1f3;
  --login-font-data: Aptos, "Segoe UI", Calibri, Arial, sans-serif;
  --login-font-ui: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --login-font-heading: "Segoe UI Semibold", "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; }

body {
  min-height: 100vh;
  margin: 0;
  background-color: var(--login-background);
  background-image: radial-gradient(#d3d9de .75px, transparent .75px);
  background-size: 5px 5px;
  color: var(--login-text);
  font-family: var(--login-font-ui);
  font-size: 12px;
}

button, input, select { font: inherit; }
input, select { font-family: var(--login-font-data); font-size: 11px; }
button { font-family: var(--login-font-ui); }
[hidden] { display: none !important; }

.login-page {
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 28px 18px;
}

.login-card {
  width: min(470px, 100%);
  overflow: hidden;
  border: 1px solid #bdc7ce;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 18px 45px rgba(31, 48, 61, .16);
}

.login-logo-area {
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-bottom: 1px solid #d5b300;
  background: var(--login-yellow);
}

.login-logo-area img {
  display: block;
  width: min(190px, 48%);
  height: auto;
  object-fit: contain;
}

.login-form-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 465px;
  padding: 37px 50px 25px;
  background: #fff;
}

.login-form-eyebrow {
  color: #967b00;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .13em;
}

.login-form-heading h1 {
  margin: 8px 0 6px;
  color: #314451;
  font-family: var(--login-font-heading);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.login-form-heading p {
  margin: 0;
  color: var(--login-muted);
  font-size: 10px;
  line-height: 1.55;
}

.login-alert {
  margin: 18px 0 -3px;
  padding: 10px 11px;
  border: 1px solid #dda9ad;
  background: #fff0f1;
  color: #a52a34;
  font-size: 10px;
  line-height: 1.45;
}

.login-alert[data-type="info"] {
  border-color: #b9c8d2;
  background: #f1f5f7;
  color: #405665;
}

.login-form {
  display: grid;
  gap: 17px;
  margin-top: 27px;
}

.login-field {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.login-field > label:first-child {
  color: #4b5d69;
  font-size: 10px;
  font-weight: 700;
}

.login-field input,
.login-field select {
  width: 100%;
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid #cbd3d9;
  border-radius: 0;
  outline: 0;
  background: #fff;
  color: #354754;
  box-shadow: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.login-field input::placeholder { color: #9ba5ac; }
.login-field input:hover,
.login-field select:hover { border-color: #aeb9c1; }
.login-field input:focus,
.login-field select:focus { border-color: #607585; box-shadow: 0 0 0 3px rgba(96, 117, 133, .14); }
.login-field input:autofill,
.login-field input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #fff inset; -webkit-text-fill-color: #354754; }

.login-select-wrap,
.login-password-wrap { position: relative; display: block; }

.login-select-wrap::after {
  content: "⌄";
  position: absolute;
  top: 50%;
  right: 12px;
  color: #657783;
  font-size: 15px;
  line-height: 1;
  transform: translateY(-58%);
  pointer-events: none;
}

.login-select-wrap select { padding-right: 36px; appearance: none; cursor: pointer; }
.login-password-wrap input { padding-right: 72px; }

.login-password-toggle {
  position: absolute;
  top: 1px;
  right: 1px;
  bottom: 1px;
  min-width: 67px;
  padding: 0 10px;
  border: 0;
  border-left: 1px solid #d8dde2;
  border-radius: 0;
  background: #f5f7f8;
  color: #526572;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.login-password-toggle:hover { background: #edf1f3; color: #2f4656; }
.login-password-toggle:focus-visible { outline: 2px solid #607585; outline-offset: -3px; }
.login-caps-warning { color: #a52a34; font-size: 9px; font-weight: 650; }

.login-submit {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  padding: 0 13px;
  border: 1px solid #d1ad00;
  border-radius: 0;
  background: var(--login-yellow);
  color: #263746;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.login-submit:hover:not(:disabled) { border-color: #bc9c00; background: #f5cc00; }
.login-submit:focus-visible { outline: 3px solid rgba(44, 65, 82, .24); outline-offset: 2px; }
.login-submit:disabled { cursor: wait; opacity: .72; }
.login-submit__arrow { margin-left: auto; font-size: 17px; line-height: 1; }
.login-submit__spinner { display: none; width: 14px; height: 14px; border: 2px solid rgba(38, 55, 70, .25); border-top-color: #263746; border-radius: 50%; animation: login-spin .7s linear infinite; }
.login-submit.is-loading .login-submit__spinner { display: inline-block; }
.login-submit.is-loading .login-submit__arrow { visibility: hidden; }

.login-form-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 27px;
  color: #8a959d;
  font-size: 8px;
  text-align: center;
}

.login-form-footer span { color: #2f7d57; font-size: 7px; }
.login-page-footer { margin: 0; color: #75828c; font-size: 8px; letter-spacing: .035em; text-align: center; }

@keyframes login-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (max-width: 520px) {
  .login-page { display: block; min-height: 100vh; padding: 0; background: #fff; }
  .login-card { width: 100%; min-height: calc(100vh - 28px); border: 0; box-shadow: none; }
  .login-logo-area { min-height: 100px; padding: 20px; }
  .login-logo-area img { width: min(175px, 48%); }
  .login-form-panel { min-height: calc(100vh - 128px); padding: 32px 24px 22px; }
  .login-form-heading h1 { font-size: 21px; }
  .login-form { margin-top: 24px; }
  .login-form-footer { padding-top: 24px; }
  .login-page-footer { height: 28px; display: grid; place-items: center; background: #fff; }
}
