:root {
  --green: #9ff2ac;
  --green-dark: #247f35;
  --green-soft: #e9ffec;
  --yellow: #ffcd51;
  --blue: #8bb4ff;
  --blue-dark: #3858aa;
  --orange: #fe8038;
  --canvas: #fafaf7;
  --paper: #ffffff;
  --ink: #222222;
  --ink-strong: #111111;
  --ink-soft: #61615d;
  --line: rgba(17, 17, 17, 0.16);
  --font-heading: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 92% 8%, rgba(159, 242, 172, 0.24), transparent 27rem),
    radial-gradient(circle at 6% 100%, rgba(255, 205, 81, 0.12), transparent 24rem),
    var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
}

body::before {
  position: fixed;
  top: 50%;
  right: clamp(-12rem, -8vw, -4rem);
  width: clamp(20rem, 38vw, 36rem);
  aspect-ratio: 72 / 66;
  background: url("public/img/logo/EpiSymbol.svg") center / contain no-repeat;
  content: "";
  opacity: 0.22;
  pointer-events: none;
  translate: 0 -50%;
}

.access-shapes {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.access-shape {
  position: absolute;
  display: block;
}

.access-shape--green {
  top: 9%;
  right: 7%;
  width: clamp(3rem, 5vw, 5rem);
  aspect-ratio: 1;
  border-radius: 1.25rem;
  background: rgba(159, 242, 172, 0.72);
  rotate: 14deg;
}

.access-shape--yellow {
  right: 38%;
  bottom: -2.5rem;
  width: clamp(5rem, 8vw, 8rem);
  aspect-ratio: 1;
  border: clamp(1rem, 2vw, 1.8rem) solid rgba(255, 205, 81, 0.42);
  border-radius: 50%;
}

.access-shape--blue {
  top: 18%;
  left: 48%;
  width: clamp(2.5rem, 4vw, 4rem);
  aspect-ratio: 1;
  border-radius: 0.75rem;
  background: rgba(139, 180, 255, 0.38);
  rotate: 45deg;
}

.access-shape--orange {
  right: 8%;
  bottom: 8%;
  width: clamp(3.5rem, 6vw, 6rem);
  aspect-ratio: 1;
  background: rgba(254, 128, 56, 0.34);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  rotate: -8deg;
}

button,
input {
  font: inherit;
}

.access-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  width: min(100%, 88rem);
  margin-inline: auto;
}

.access-panel {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  justify-content: center;
  width: min(100%, 55rem);
  padding: clamp(2rem, 6vw, 6rem);
}

.access-brand {
  position: absolute;
  top: clamp(1.5rem, 4vw, 3rem);
  width: 10rem;
}

.access-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.access-brand:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 0.2rem solid var(--blue-dark);
  outline-offset: 0.2rem;
}

.access-copy {
  max-width: 41rem;
}

.access-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.5rem;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.access-kicker::before {
  width: 1.65rem;
  height: 0.65rem;
  border-radius: 0.2rem;
  background: var(--green);
  content: "";
  rotate: -8deg;
}

h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--ink-strong);
  font-family: var(--font-heading);
  font-size: clamp(3.25rem, 7vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

h1 em {
  color: var(--green-dark);
  font-weight: inherit;
}

.access-copy > p:last-child {
  max-width: 36rem;
  margin: 2rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.7;
  text-wrap: pretty;
}

.access-copy a,
.access-help a {
  color: var(--green-dark);
  font-weight: 600;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.access-form {
  width: min(100%, 37rem);
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.access-form > label {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--ink-strong);
  font-size: 0.88rem;
  font-weight: 600;
}

.access-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
}

.access-field input {
  width: 100%;
  min-height: 3.55rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--paper);
  color: var(--ink-strong);
  box-shadow: 0 0.5rem 2rem rgba(24, 24, 19, 0.04);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.access-field input:hover {
  border-color: rgba(17, 17, 17, 0.32);
}

.access-field input:focus {
  border-color: var(--green-dark);
  box-shadow: 0 0 0 0.2rem rgba(36, 127, 53, 0.12);
}

.access-field button {
  min-height: 3.55rem;
  padding: 0.8rem 1.2rem;
  border: 0;
  border-radius: 0.7rem;
  background: var(--green-dark);
  color: white;
  cursor: pointer;
  font-weight: 600;
  transition: translate 180ms cubic-bezier(0.2, 0.65, 0.25, 1), box-shadow 180ms ease;
}

.access-field button:hover {
  box-shadow: 0 0.8rem 2rem rgba(36, 127, 53, 0.2);
  translate: 0 -0.12rem;
}

.access-field button span {
  display: inline-block;
  margin-left: 0.25rem;
  transition: translate 180ms cubic-bezier(0.2, 0.65, 0.25, 1);
}

.access-field button:hover span {
  translate: 0.2rem 0;
}

.access-field button:disabled {
  cursor: wait;
  opacity: 0.68;
  translate: none;
}

.access-error {
  min-height: 1.5rem;
  margin: 0.65rem 0 0;
  color: #a3341d;
  font-size: 0.88rem;
  line-height: 1.5;
}

.access-help {
  max-width: 37rem;
  margin: 0.5rem 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.6;
}

@media (max-width: 800px) {
  body::before {
    right: -10rem;
    width: 25rem;
    opacity: 0.12;
  }

  .access-shape--green {
    top: 5rem;
    right: -1.25rem;
  }

  .access-shape--blue {
    top: auto;
    bottom: 7%;
    left: auto;
    right: 12%;
  }

  .access-shape--orange {
    display: none;
  }

  .access-panel {
    padding-top: 7.5rem;
  }
}

@media (max-width: 520px) {
  .access-panel {
    justify-content: flex-start;
    padding-inline: 1.25rem;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4rem);
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
