:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #18344f;
  background: #e9eef3;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
}

button,
input {
  font: inherit;
}

.access-page {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(120deg, rgba(17, 103, 154, 0.08), transparent 48%),
    #e9eef3;
}

.access-card {
  width: min(560px, 100%);
  padding: 30px;
  border: 1px solid #cdd8e2;
  border-top: 5px solid #18a7c7;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 47, 77, 0.14);
}

.access-logo {
  display: block;
  width: 86px;
  height: 86px;
  margin: 0 auto 18px;
  object-fit: contain;
}

.access-eyebrow {
  margin: 0 0 6px;
  color: #1278a3;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
}

.access-card h1 {
  margin: 0;
  color: #163b5d;
  font-size: 1.55rem;
  text-align: center;
}

.access-copy,
.access-footnote {
  color: #64778a;
  line-height: 1.5;
  text-align: center;
}

.access-copy {
  margin: 10px 0 22px;
}

.access-footnote {
  margin: 20px 0 0;
  font-size: 0.76rem;
}

.access-form {
  display: grid;
  gap: 15px;
}

.access-form fieldset {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 16px;
  border: 1px solid #d5dfe8;
}

.access-form legend {
  padding: 0 7px;
  color: #294b68;
  font-weight: 900;
}

.access-form label {
  display: grid;
  gap: 6px;
  color: #294b68;
  font-size: 0.82rem;
  font-weight: 800;
}

.access-form input {
  width: 100%;
  min-height: 43px;
  padding: 9px 11px;
  border: 1px solid #bfcdd9;
  border-radius: 4px;
  color: #18344f;
  background: #ffffff;
}

.access-form input:focus {
  border-color: #158bad;
  outline: 3px solid rgba(21, 139, 173, 0.14);
}

.access-button {
  display: inline-grid;
  min-height: 44px;
  place-items: center;
  padding: 10px 18px;
  border: 1px solid #0c7098;
  border-radius: 4px;
  color: #ffffff;
  background: #117da5;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.access-button:hover {
  background: #0d6689;
}

.access-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.access-error {
  margin: 0 0 16px;
  padding: 11px 13px;
  border: 1px solid #f1b7c2;
  border-radius: 4px;
  color: #9b1733;
  background: #fff2f4;
  font-size: 0.84rem;
  line-height: 1.45;
}

.setup-link {
  display: block;
  margin-top: 18px;
  color: #12689b;
  font-weight: 800;
  text-align: center;
}

.install-form {
  margin-top: 20px;
}

@media (max-width: 600px) {
  .access-page {
    align-items: start;
    padding: 10px;
  }

  .access-card {
    width: 100%;
    padding: 22px 16px;
  }

  .access-logo {
    width: 72px;
    height: 72px;
    margin-bottom: 12px;
  }

  .access-card h1 {
    font-size: 1.3rem;
  }

  .access-copy {
    margin-bottom: 18px;
    font-size: 0.9rem;
  }

  .access-form input,
  .access-button {
    min-height: 48px;
  }
}

@media (max-width: 380px) {
  .access-page {
    padding: 0;
  }

  .access-card {
    min-height: 100dvh;
    padding: 18px 14px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
  }

  .access-form fieldset {
    padding: 12px;
  }
}
