@font-face {
  font-family: Atlas;
  src: url(/assets/sans.woff2) format("woff2");
  font-display: swap;
  font-weight: 100 900;
}
:root {
  color-scheme: dark;
  --bg: #12121c;
  --panel: #1d1c29;
  --text: #fff9f6;
  --muted: #c0b9ca;
  --line: #ffffff22;
  --accent: #ffada5;
  --cyan: #8bdddf;
  font:
    16px/1.5 Atlas,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
}
header,
footer,
main {
  width: min(1016px, calc(100% - 40px));
  margin: auto;
}
header {
  height: 82px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
a {
  color: inherit;
  text-decoration: none;
}
.brand {
  font-weight: 850;
  letter-spacing: -0.07em;
  font-size: 27px;
}
.brand span,
h1 span {
  color: var(--accent);
}
.back {
  font-size: 0.9rem;
  font-weight: 650;
}
.back span {
  color: var(--cyan);
}
main {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  isolation: isolate;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
}
.cover {
  min-height: 530px;
  background:
    linear-gradient(180deg, #32263500 52%, #180e2673),
    url(/assets/leonida-sunset.webp) 48% 48% / cover;
}
.sheet {
  padding: clamp(28px, 4.5vw, 58px);
  min-width: 0;
  align-self: center;
}
.kicker {
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  color: var(--cyan);
  margin: 0 0 16px;
}
h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 780;
  line-height: 0.99;
  letter-spacing: -0.064em;
  margin: 0 0 20px;
}
h2 {
  font-size: 1.18rem;
  letter-spacing: -0.035em;
  margin: 0 0 6px;
}
.intro,
.group p {
  color: var(--muted);
  margin: 0 0 18px;
}
.actions {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}
button,
.next {
  font: inherit;
  font-weight: 680;
  cursor: pointer;
  touch-action: manipulation;
}
button:disabled {
  cursor: wait;
  opacity: 0.58;
}
.primary,
.secondary {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 14px;
}
.primary {
  background: var(--accent);
  color: #241a20;
}
.primary:hover {
  background: #ffc3b9;
}
.secondary {
  color: var(--text);
  border-color: #ffffff31;
  background: #ffffff0a;
}
.secondary:hover {
  background: #ffffff14;
}
.hint,
.group p,
#notice,
.check {
  font-size: 0.9rem;
  line-height: 1.5;
}
.hint {
  color: var(--muted);
  margin: 18px 0 0;
}
.group {
  border-top: 1px solid var(--line);
  padding: 22px 0 0;
  margin-top: 24px;
}
.group label:not(.check) {
  font-size: 0.88rem;
  font-weight: 700;
}
.muted {
  font-weight: 400;
  color: var(--muted);
}
input[type="email"] {
  display: block;
  width: 100%;
  margin: 7px 0 12px;
  padding: 12px 14px;
  background: #12111b;
  border: 1px solid #ffffff35;
  color: var(--text);
  border-radius: 11px;
  font: inherit;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  margin: 0 0 15px;
}
.check input {
  flex: none;
  accent-color: var(--accent);
  width: 17px;
  height: 17px;
  margin: 3px 0;
}
.text-button {
  background: transparent;
  color: var(--cyan);
  padding: 7px 0;
  border: 0;
  text-align: left;
}
.text-button#logout {
  margin-top: 20px;
  color: var(--muted);
}
#notice {
  color: var(--cyan);
  margin: 18px 0 0;
}
#notice:empty {
  display: none;
}
#notice[data-error="true"] {
  color: #ffc0b8;
}
footer {
  display: flex;
  gap: 12px;
  justify-content: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 25px 0;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 680px) {
  header,
  footer,
  main {
    width: min(100% - 28px, 480px);
  }
  header {
    height: 62px;
  }
  main {
    grid-template-columns: minmax(0, 1fr);
    border-radius: 22px;
  }
  .cover {
    min-height: 0;
    height: clamp(94px, 22vh, 170px);
    background-position:
      center,
      center 52%;
  }
  .sheet {
    padding: 26px 22px;
  }
  .kicker {
    margin-bottom: 11px;
  }
  h1 {
    font-size: 2.9rem;
  }
  .intro {
    margin-bottom: 12px;
  }
  .actions {
    margin-top: 18px;
  }
  body:has(#member:not([hidden])) .cover {
    height: 54px;
  }
}

footer .privacy {
  padding: 0;
  color: inherit;
  border: 0;
  background: transparent;
  font: inherit;
}
#usage-dialog {
  width: min(440px, calc(100% - 28px));
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 18px;
}
#usage-dialog::backdrop {
  background: #100c16ab;
}
#usage-dialog .modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#usage-dialog button {
  color: var(--text);
  background: #ffffff12;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
}
