:root {
  --access-ink: #132321;
  --access-muted: #62706d;
  --access-panel: #fbfaf6;
  --access-primary: #0b4b47;
  --access-primary-hover: #073a37;
  --access-line: #d9dfdc;
  --access-error: #a52a32;
  --access-focus: #b77c68;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--access-ink);
  background: var(--access-panel);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.access-shell {
  min-height: 100vh;
  min-height: 100svh;
}

.access-panel {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: 132px 24px 72px;
  background: var(--access-panel);
}

.access-brand {
  position: absolute;
  top: 28px;
  left: clamp(24px, 5vw, 72px);
  display: inline-flex;
}

.access-brand img {
  width: auto;
  height: 98px;
  object-fit: contain;
}

.access-brand:focus-visible,
.password-toggle:focus-visible,
.access-submit:focus-visible {
  outline: 3px solid var(--access-focus);
  outline-offset: 4px;
}

.access-content {
  width: min(100%, 430px);
}

.access-copy {
  text-align: center;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.access-copy p {
  margin: 14px 0 0;
  color: var(--access-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.access-form {
  margin-top: 36px;
}

.access-form > label {
  display: block;
  margin-bottom: 9px;
  font-size: 0.9rem;
  font-weight: 700;
}

.password-control {
  display: flex;
  min-height: 56px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--access-line);
  border-radius: 10px;
  background: #fff;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.password-control:focus-within {
  border-color: var(--access-primary);
  box-shadow: 0 0 0 3px rgba(11, 75, 71, 0.12);
}

.password-control input {
  min-width: 0;
  flex: 1;
  padding: 0 8px 0 16px;
  border: 0;
  color: var(--access-ink);
  background: transparent;
  outline: 0;
}

.password-toggle {
  display: grid;
  width: 52px;
  flex: 0 0 52px;
  place-items: center;
  border: 0;
  color: var(--access-muted);
  background: transparent;
  transition: color 180ms ease, background-color 180ms ease;
}

.password-toggle:hover {
  color: var(--access-ink);
  background: #f1f4f2;
}

.password-toggle svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.access-submit {
  display: flex;
  width: 156px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin: 14px auto 0;
  padding: 0 24px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--access-primary);
  font-weight: 750;
  transition: background-color 180ms ease, transform 180ms ease;
}

.access-submit:hover {
  background: var(--access-primary-hover);
}

.access-submit:active {
  transform: translateY(1px);
}

.access-error {
  margin: 11px 0 0;
  color: var(--access-error);
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .access-panel {
    padding: 124px 24px 56px;
  }

  .access-brand {
    top: 18px;
    left: 24px;
  }

  .access-brand img {
    height: 88px;
  }

  h1 {
    font-size: clamp(2.45rem, 11vw, 3.25rem);
  }

  .access-form {
    margin-top: 28px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .password-control,
  .password-toggle,
  .access-submit {
    transition-duration: 0.01ms;
  }
}
