/* The login: the start page of the site, with a password where the PDF used to be dropped. */

body {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  height: auto;
  padding: 32px 20px;
}

.theme-chip {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
}

.hero {
  width: min(560px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* A fan of paper sheets in the palette, like swatches from a colour book. */
.fan {
  position: relative;
  width: 120px;
  height: 128px;
  margin-bottom: 30px;
}

.leaf {
  position: absolute;
  left: 22px;
  top: 6px;
  width: 76px;
  height: 104px;
  border-radius: 12px;
  transform-origin: 50% 110%;
  box-shadow: 0 10px 24px rgb(40 30 20 / 16%);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.s1 { background: var(--teal); transform: rotate(-24deg); }
.s2 { background: var(--saffron-bright); transform: rotate(-10deg); }
.s3 { background: var(--coral); transform: rotate(5deg); }

.s4 {
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--indigo);
  transform: rotate(18deg);
  border: 1px solid var(--line);
}

.s4 .ico {
  width: 34px;
  height: 34px;
  stroke-width: 1.6;
}

.hero:hover .s1 { transform: rotate(-32deg); }
.hero:hover .s2 { transform: rotate(-15deg); }
.hero:hover .s3 { transform: rotate(6deg); }
.hero:hover .s4 { transform: rotate(24deg); }

.hero h1 {
  max-width: 13ch;
  font-size: clamp(34px, 6vw, 50px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(95deg, var(--coral), var(--saffron-bright) 55%, var(--plum));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin-top: 14px;
  font-size: 16px;
  color: var(--muted);
}

/* Where the dashed drop area was */
.gate {
  margin-top: 30px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border: 1.5px dashed color-mix(in srgb, var(--muted) 45%, transparent);
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  backdrop-filter: blur(6px);
  transition: border-color 0.2s, background-color 0.2s;
}

.gate:focus-within {
  border-color: var(--accent);
  background: var(--surface);
}

.gate .field {
  min-height: 52px;
  font-size: 16px;
  text-align: center;
  border-radius: 14px;
}

.gate .btn {
  width: 100%;
}

.gate-error {
  margin-top: 16px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--coral-soft);
  color: var(--danger);
  font-weight: 500;
  font-size: 14px;
}
