:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  background: #f3f7fc;
  color: #10243c;
}

* { box-sizing: border-box; }

body { margin: 0; min-width: 320px; }

.hml-environment-banner {
  position: sticky;
  z-index: 1000;
  top: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px;
  background: #7c2d12;
  color: #fff7ed;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hml-environment-banner strong { letter-spacing: 0.12em; }

.access-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, #10243c 0%, #173d5f 45%, #edf4fb 45%, #f4f8fd 100%);
}

.access-card {
  width: min(100%, 470px);
  padding: 36px;
  border: 1px solid #dfe8f3;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(16, 36, 60, 0.16);
}

.brand { display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 700; letter-spacing: 0.04em; }
.brand small { display: block; margin-top: 3px; color: #62748a; font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #2869ea; color: #fff; font-size: 30px; font-weight: 700; }
h1 { margin: 34px 0 8px; font-size: clamp(1.7rem, 5vw, 2rem); line-height: 1.2; letter-spacing: -0.03em; }
h2 { margin: 0 0 8px; font-size: 1.25rem; }
.intro, .field-help { color: #51637b; line-height: 1.5; }
.intro { margin: 0 0 28px; }
.field-help { margin: 4px 0 18px; font-size: 0.94rem; }
form { display: grid; gap: 10px; }
form[hidden], [hidden] { display: none !important; }
#temporary-fields { display: grid; gap: 10px; }
label { margin-top: 6px; font-size: 0.9rem; font-weight: 700; }
input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #cfdbe9;
  border-radius: 10px;
  color: #10243c;
  background: #fff;
  font: inherit;
}
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #8ab3ff; outline-offset: 2px; }
.status { min-height: 1.4em; margin: 10px 0 0; color: #425a75; font-size: 0.9rem; line-height: 1.5; }
.status.error { color: #a42a36; }
.status.success { color: #166a56; }
button { cursor: pointer; font: inherit; }
button:disabled { cursor: wait; opacity: 0.7; }
.primary-button {
  min-height: 50px;
  padding: 12px 18px;
  border: 0;
  border-radius: 10px;
  background: #2869ea;
  color: #fff;
  font-weight: 700;
}
.primary-button:hover:not(:disabled) { background: #1758da; }
.text-button {
  width: fit-content;
  margin-top: 18px;
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: #215fd5;
  font-weight: 700;
  text-decoration: none;
}
.text-button:hover { text-decoration: underline; }
.link-button { display: inline-block; }
#recovery-form { margin-top: 20px; padding-top: 22px; border-top: 1px solid #e2eaf4; }
.access-footer { margin: 30px 0 0; color: #738399; font-size: 0.8rem; }

@media (max-width: 540px) {
  .access-shell { padding: 0; background: #f3f7fc; }
  .access-card { min-height: 100dvh; border: 0; border-radius: 0; box-shadow: none; padding: 28px 22px; }
}
