:root {
  color-scheme: light;
  font-family: "Instrument Sans", "Segoe UI", sans-serif;
  color: #192926;
  background: #e8eee9;
}
* { box-sizing: border-box; }
body { margin: 0; }
.access {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: clamp(1rem, 5vw, 4rem);
}
.access-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  width: min(100%, 66rem);
  min-height: 32rem;
  overflow: hidden;
  border: 1px solid #c5d1c8;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1.25rem 3.5rem #193c2d1a;
}
.project {
  position: relative;
  display: flex;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem);
  color: #f6faf3;
  background: #173c32;
}
.project::before {
  position: absolute;
  z-index: -1;
  inset: -35% -40% 39% 20%;
  content: "";
  transform: rotate(-24deg);
  border: 1px solid #a9d1b95e;
  background:
    linear-gradient(90deg, transparent 24%, #a9d1b956 24%, #a9d1b956 25%, transparent 25%, transparent 72%, #a9d1b956 72%, #a9d1b956 73%, transparent 73%),
    repeating-linear-gradient(0deg, #b3dac044 0 1px, transparent 1px 22px);
  mask-image: linear-gradient(#000 45%, transparent);
}
.project h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4.4vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -.055em;
  font-weight: 720;
}
.access-panel {
  align-self: center;
  padding: clamp(1.5rem, 5vw, 4rem);
}
.access-panel h2, .settings-panel h1 {
  margin: 0 0 1.7rem;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  letter-spacing: -.035em;
}
.access-form { display: grid; gap: .55rem; }
.access-form label { font-size: .94rem; font-weight: 650; }
.access-form label:not(:first-child) { margin-top: .7rem; }
.access-form input {
  width: 100%;
  min-height: 3rem;
  padding: .65rem .8rem;
  border: 1px solid #a8b9ad;
  border-radius: .45rem;
  background: #f8faf8;
  color: inherit;
  font: inherit;
}
.password-field { position: relative; }
.password-field input { padding-right: 3.2rem; }
.password-toggle {
  position: absolute;
  inset: .22rem .22rem .22rem auto;
  width: 2.6rem;
  border: 0;
  border-radius: .3rem;
  background: transparent;
  color: #345e4d;
  cursor: pointer;
}
.password-toggle:hover { background: #e6eee7; }
.eye {
  position: relative;
  display: inline-block;
  width: 1.05rem;
  height: .72rem;
  border: 2px solid currentColor;
  border-radius: 70% 30% / 70% 30%;
  transform: rotate(45deg);
}
.eye::after {
  position: absolute;
  inset: 50% auto auto 50%;
  width: .3rem;
  height: .3rem;
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
  content: "";
}
.password-toggle[aria-pressed="true"] .eye::before {
  position: absolute;
  inset: 50% -4px auto;
  height: 2px;
  background: currentColor;
  content: "";
}
.submit {
  margin-top: 1.1rem;
  min-height: 3rem;
  padding: .65rem 1rem;
  border: 0;
  border-radius: .45rem;
  background: #214c3b;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.submit:hover { background: #173c32; }
:focus-visible { outline: 3px solid #47785d; outline-offset: 2px; }
.message {
  margin: 0 0 1rem;
  padding: .75rem 1rem;
  border-radius: .4rem;
  line-height: 1.45;
  font-size: .93rem;
}
.access-panel .message:not(:target) { display: none; }
.error { color: #81281c; background: #faebe8; }
.success { color: #1c563b; background: #e3f3e8; }
.settings-panel {
  width: min(100%, 30rem);
  border: 1px solid #c5d1c8;
  border-radius: 1rem;
  padding: clamp(1.5rem, 5vw, 3rem);
  background: #fff;
}
.back { display: inline-block; margin-bottom: 1.25rem; color: #214c3b; }
.hint { margin: .2rem 0 0; color: #4d6157; font-size: .9rem; }
@media (max-width: 700px) {
  .access-layout { grid-template-columns: minmax(0, 1fr); min-height: auto; }
  .project { min-height: 12rem; }
}
