:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  color: #fff;
  background: #000;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: #000;
}

body::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: -18%;
  background-image: url("/assets/lips3.jpg");
  background-position: center;
  background-repeat: repeat;
  background-size: 150px auto;
  filter: grayscale(1) invert(1);
  opacity: .07;
  transform: rotate(-10deg) scale(1.12);
  pointer-events: none;
}

button,
input {
  font: inherit;
}

.access-screen {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  padding: 24px;
  place-items: center;
}

.access-modal {
  width: min(100%, 520px);
  padding: clamp(24px, 5vw, 48px);
  border: 2px solid #fff;
  background: #000;
}

h1 {
  margin: 0 0 32px;
  font-size: clamp(34px, 8vw, 64px);
  line-height: 0.9;
  letter-spacing: 0;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.access-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 2px solid #fff;
}

input,
button {
  min-height: 54px;
  border: 0;
  color: #fff;
  background: #000;
}

input {
  width: 100%;
  padding: 0 14px;
  border-radius: 0;
}

button {
  min-width: 104px;
  padding: 0 20px;
  border-left: 2px solid #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

button:hover,
button:focus-visible {
  color: #000;
  background: #fff;
  outline: 0;
}

input:focus-visible {
  outline: 0;
  box-shadow: inset 0 0 0 2px #fff;
}

.access-status {
  min-height: 18px;
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 480px) {
  body::before {
    inset: 0;
    background-position: -18px -12px;
    background-size: 124px auto;
    opacity: .1;
    transform: none;
  }

  .access-screen {
    padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
  }

  .access-modal {
    width: 100%;
    padding: 28px 18px 22px;
  }

  h1 {
    margin-bottom: 28px;
    font-size: clamp(38px, 11vw, 48px);
  }

  .access-control {
    grid-template-columns: 1fr;
  }

  input {
    min-height: 56px;
  }

  button {
    min-height: 50px;
    border-top: 2px solid #fff;
    border-left: 0;
  }
}
