/* Kalypse - Ink & Seal: account and vote pages (register, forgot password, log in, vote). Loads after ink.css */

.inkf-main { position: relative; }
.inkf-glyph {
  position: absolute;
  z-index: 0;
  left: -5vw;
  top: 40px;
  font-family: var(--brush);
  font-size: min(66vh, 44vw, 640px);
  line-height: 1;
  color: var(--wash);
  opacity: .14;
  mix-blend-mode: multiply;
  pointer-events: none;
  user-select: none;
  animation: inkf-in 1.8s cubic-bezier(.2,.65,.25,1) .05s both;
}
@keyframes inkf-in {
  0% { opacity: 0; filter: blur(24px); transform: scale(1.08); }
  100% { opacity: .14; filter: none; transform: none; }
}

/* ---------- layout: the explanation on the left, the sheet you fill in on the right ---------- */
.inkf-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(24px, 3vw, 48px);
  row-gap: 56px;
  align-items: start;
  padding-top: clamp(132px, 12vw, 176px);
  padding-bottom: clamp(88px, 9vw, 136px);
}
.inkf-head { grid-column: 1 / span 5; }
.inkf-sheet { grid-column: 7 / span 6; }

.inkf-head h1 {
  font-size: clamp(2.6rem, 4.6vw, 4rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.05;
}
.inkf-head .sec-head .seal { margin-top: .45rem; }
.inkf-intro {
  margin-top: 1.1rem;
  margin-left: calc(3.25rem + 1.25rem);
  max-width: 27rem;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.inkf-intro, .inkf-notes p, .inkf-steps p { text-wrap: pretty; }
.inkf-intro--link { margin-top: .9rem; }

/* notes and steps under the heading */
.inkf-notes, .inkf-steps {
  margin-top: clamp(32px, 3.4vw, 48px);
  margin-left: calc(3.25rem + 1.25rem);
  max-width: 27rem;
}
.inkf-notes li, .inkf-steps li {
  padding-block: 1.05rem 1.15rem;
  background: var(--brushline) left bottom / 100% 3px no-repeat;
}
.inkf-notes li:first-child, .inkf-steps li:first-child {
  background: var(--brushline) left top / 100% 3px no-repeat, var(--brushline) left bottom / 100% 3px no-repeat;
}
.inkf-notes h2, .inkf-steps h2 { font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
.inkf-notes p, .inkf-steps p { margin-top: .3rem; font-size: 1.02rem; line-height: 1.6; color: var(--wash-text); }
.inkf-steps li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); column-gap: 1rem; align-items: start; }
.inkf-steps .seal { --s: 2.3rem; margin-top: .1rem; }
.inkf-steps:has(.on) li:not(.on) .seal { background: var(--wash); box-shadow: inset 0 0 0 calc(var(--s) * .06) var(--wash), inset 0 0 0 calc(var(--s) * .09) var(--paper-hi); }
.inkf-steps:has(.on) li:not(.on) h2 { color: var(--ink-soft); }

/* ---------- the sheet: a mounted document with a double ink frame and a seal on its edge ---------- */
.inkf-sheet {
  position: relative;
  margin: 7px;
  padding: clamp(36px, 3.6vw, 52px) clamp(24px, 3.4vw, 52px) clamp(28px, 3vw, 44px);
  background: linear-gradient(180deg, #E5DFD2, var(--paper-hi) 60%, #DDD5C6);
  border: 1px solid var(--ink);
  box-shadow: 0 0 0 6px var(--paper-hi), 0 0 0 7px var(--ink), 0 34px 60px -34px rgba(20,18,16,.45);
}
.inkf-corner { --s: 3.2rem; --r: 4deg; position: absolute; top: -1.7rem; right: 1.9rem; }
.inkf-sheet-title { font-size: 1.45rem; font-weight: 700; line-height: 1.25; }

/* ---------- form controls (markup comes from kp_field / kp_captcha_field) ---------- */
.login-group { display: grid; gap: .45rem; margin-bottom: 1.4rem; }
.login-label { font-size: 1.02rem; font-weight: 700; line-height: 1.35; color: var(--ink); }
.login-input {
  display: block;
  width: 100%;
  min-height: 3.35rem;
  padding: .7rem 1rem .65rem;
  font: 500 1.125rem/1.3 var(--serif);
  color: var(--ink);
  background: #EAE6DC;
  border: 1px solid rgba(20,18,16,.3);
  border-bottom: 2px solid var(--ink);
  border-radius: 2px;
  transition: border-color .15s, background-color .15s;
}
.login-input::placeholder { color: #6F695E; opacity: 1; }
.login-input:hover { border-color: rgba(20,18,16,.5); border-bottom-color: var(--ink); }
.login-input:focus { outline: 2px solid var(--cinnabar); outline-offset: 3px; border-color: var(--ink); border-bottom-color: var(--cinnabar); background: #EDEBE6; }
.login-input[readonly] { background: transparent; color: var(--ink-soft); border-style: dashed; border-bottom-style: solid; }
.login-input:user-invalid { border-bottom-color: var(--cinnabar); }

.login-captcha { display: flex; align-items: center; gap: 1rem; }
.login-captcha-q {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: lining-nums;
}
.login-captcha .login-input { width: 7rem; text-align: center; font-weight: 700; font-size: 1.3rem; }

.login-check {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  min-height: 2.75rem;
  padding-block: .35rem;
  margin-bottom: .5rem;
  font-size: 1.05rem;
  line-height: 1.5;
  cursor: pointer;
}
.login-check input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin: .05rem 0 0;
  background: #EAE6DC;
  border: 2px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
}
.login-check input:checked {
  background: var(--cinnabar) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23FBF6EC' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
  border-color: var(--cinnabar);
}
.login-check input:focus-visible { outline: 2px solid var(--cinnabar); outline-offset: 3px; }

.login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.5rem;
  margin-top: 1rem;
  padding: .85rem 1.6rem .9rem;
  font: 700 1.125rem/1.2 var(--serif);
  letter-spacing: .01em;
  color: #E9E2D4;
  text-align: center;
  text-decoration: none;
  background: var(--cinnabar);
  border: 0;
  border-radius: 2px;
  box-shadow: inset 0 0 0 3px var(--cinnabar), inset 0 0 0 4px rgba(233,226,212,.7);
  cursor: pointer;
  transition: background-color .2s, box-shadow .2s, color .2s;
}
.login-btn:hover { background: var(--blood); box-shadow: inset 0 0 0 3px var(--blood), inset 0 0 0 4px rgba(233,226,212,.7); }
.login-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.login-btn:disabled { opacity: .6; cursor: progress; }
.login-btn--ink { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.login-btn--ink:hover { color: var(--paper); background: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }

.login-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .25rem 1.5rem;
  margin-top: 1.6rem;
  padding-top: 1rem;
  background: var(--brushline) left top / 100% 3px no-repeat;
}
.login-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 1.02rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--cinnabar);
  text-decoration-thickness: 1.5px;
  text-underline-offset: .32em;
}
.login-links a:hover { color: var(--cinnabar); }

/* ---------- messages ---------- */
.login-err, .login-ok {
  position: relative;
  margin-bottom: 1.5rem;
  padding: .95rem 1.1rem 1rem 1.35rem;
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.5;
}
.login-err {
  color: var(--blood);
  background: rgba(184,35,27,.09);
}
.login-ok {
  color: var(--ink);
  background: rgba(20,18,16,.06);
}
.login-err::before, .login-ok::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--cinnabar);
  border-radius: 3px 1px 4px 2px;
}
.login-ok::before { background: var(--ink); }
.login-text { margin-top: 1rem; font-size: 1.05rem; line-height: 1.6; color: var(--ink-soft); }
.login-text + .login-btn { margin-top: 1.25rem; }

/* ---------- account created: the stamped certificate ---------- */
.inkf-cert {
  position: relative;
  margin: .25rem 0 .5rem;
  padding: 1.2rem 1.35rem 1rem;
  border: 1px solid rgba(20,18,16,.4);
  background: rgba(234,230,220,.75);
}
.inkf-stamp {
  --s: 5rem;
  --r: -6deg;
  position: absolute;
  top: -1.5rem;
  right: 1rem;
  animation: stamp .5s cubic-bezier(.3,1.6,.5,1) .45s both;
}
.inkf-cert-list { margin: 0; }
.inkf-cert-list div:first-child { padding-right: 4.5rem; }
.inkf-cert-list div { padding-block: .5rem .6rem; background: var(--brushline) left bottom / 100% 3px no-repeat; }
.inkf-cert-list div:last-child { background: none; }
.inkf-cert-list dt { font-size: .95rem; font-weight: 600; color: var(--wash-text); }
.inkf-cert-list dd { margin: .1rem 0 0; font-size: 1.45rem; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.inkf-cert-list .sn dd {
  font-size: clamp(1.3rem, 4.4vw, 1.75rem);
  letter-spacing: .06em;
  color: var(--blood);
  font-variant-numeric: lining-nums;
}
.inkf-sheet--done .login-ok { margin-bottom: 2.25rem; }
.inkf-sheet--done .inkf-corner, .inkf-sheet:has(.inkf-done) .inkf-corner { display: none; }

/* ---------- vote states ---------- */
.inkf-done { position: relative; padding: .4rem 6rem 1.4rem 0; margin-bottom: 1.4rem; background: var(--brushline) left bottom / 100% 3px no-repeat; }
.inkf-done .inkf-stamp { --s: 4.4rem; top: -.4rem; right: 0; }
.inkf-done h2 { font-size: 1.9rem; font-weight: 800; letter-spacing: -.01em; }
.inkf-done p { margin-top: .6rem; font-size: 1.06rem; line-height: 1.6; color: var(--ink-soft); }
.inkf-balance { margin-block: .9rem; font-size: 1.05rem; color: var(--ink-soft); }
.inkf-balance strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.inkf-next { margin-top: 1rem; font-size: 1.02rem; color: var(--ink-soft); }
.inkf-next strong, .inkf-next b { color: var(--ink); font-weight: 800; }
.inkf-small { margin-top: .6rem; font-size: .98rem; line-height: 1.55; color: var(--wash-text); }
.inkf-notice {
  margin-block: 1.25rem;
  padding: .9rem 1.1rem;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink-soft);
  background: rgba(20,18,16,.05);
  border-left: 3px solid var(--wash);
}
.inkf-powered { margin-top: 1.4rem; font-size: .92rem; color: var(--wash-text); }
.inkf-redeem { margin-bottom: 1.25rem; }
.inkf-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.9rem 0 1.3rem;
  font-size: 1rem;
  color: var(--wash-text);
  white-space: nowrap;
}
.inkf-divider::before, .inkf-divider::after { content: ""; flex: 1; height: 4px; background: var(--brushline) center / 100% 3px no-repeat; }

.inkf-list { margin-top: 1rem; }
.inkf-list li {
  position: relative;
  padding: .55rem 0 .6rem 1.4rem;
  font-size: 1.1rem;
  background: var(--brushline) left bottom / 100% 3px no-repeat;
}
.inkf-list li::before {
  content: "";
  position: absolute; left: .1rem; top: 1.2em;
  width: .45rem; height: .45rem; background: var(--cinnabar);
  transform: rotate(45deg);
}
.inkf-list + .login-btn { margin-top: 1.75rem; }

/* ---------- the Vote Rewards Wheel: an enso ---------- */
.inkf-wheel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(24px, 3vw, 48px);
  align-items: center;
  padding-bottom: clamp(96px, 10vw, 150px);
}
.inkf-enso { grid-column: 2 / span 4; position: relative; aspect-ratio: 1; max-width: 400px; }
.inkf-enso svg { display: block; width: 100%; height: 100%; overflow: visible; }
.inkf-enso span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--brush);
  font-size: clamp(5.5rem, 10vw, 9rem);
  line-height: 1;
  color: var(--blood);
  padding-bottom: 4%;
}
.inkf-wheel-copy { grid-column: 7 / span 5; }
.inkf-wheel-copy:only-child { grid-column: 1 / span 7; }
.inkf-wheel-copy h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 700; letter-spacing: -.012em; }
.inkf-wheel-copy p { margin-top: 1rem; max-width: 34rem; color: var(--ink-soft); }
.inkf-prizes { margin-top: 1.75rem; max-width: 30rem; }
.inkf-prizes li {
  padding-block: .8rem .9rem;
  font-size: 1.25rem;
  line-height: 1.35;
  background: var(--brushline) left bottom / 100% 4px no-repeat;
}
.inkf-prizes li:first-child { background: var(--brushline) left top / 100% 4px no-repeat, var(--brushline) left bottom / 100% 4px no-repeat; }
.inkf-prizes b { font-weight: 800; }

/* ---------- pre-launch event ---------- */
.inkf-mono { letter-spacing: .1em; text-transform: uppercase; font-variant-numeric: lining-nums tabular-nums; }
.inkf-mono::placeholder { letter-spacing: .1em; }
.inkf-serial { margin: 0 0 1.4rem; padding: 1.1rem 1.2rem 1.15rem; border: 1.5px dashed rgba(20,18,16,.5); background: rgba(234,230,220,.7); }
.inkf-serial-label { font-size: .98rem; font-weight: 600; color: var(--wash-text); }
.inkf-serial-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin-top: .3rem; }
.inkf-serial-code { font-size: clamp(1.4rem, 4.8vw, 1.9rem); font-weight: 800; letter-spacing: .1em; color: var(--blood); font-variant-numeric: lining-nums; }
.inkf-copy {
  min-height: 2.75rem;
  padding: .45rem 1.1rem;
  font: 700 1rem var(--serif);
  color: var(--ink);
  background: transparent;
  border: 0;
  box-shadow: inset 0 0 0 1.5px var(--ink);
  border-radius: 2px;
  cursor: pointer;
}
.inkf-copy:hover { background: var(--ink); color: var(--paper); }
.inkf-serial-warn { margin-top: .7rem; font-size: 1rem; font-weight: 600; line-height: 1.5; color: var(--blood); }
.inkf-progress { margin-bottom: 1rem; }
.inkf-progress-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; font-size: 1rem; color: var(--ink-soft); }
.inkf-progress-top b { color: var(--ink); }
.inkf-bar { height: 10px; margin-top: .5rem; background: rgba(20,18,16,.12); border-radius: 1px; overflow: hidden; }
.inkf-bar i { display: block; height: 100%; background: var(--cinnabar); }

.inkf-event {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 64px);
  padding-bottom: clamp(96px, 10vw, 150px);
}
.inkf-event h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 1rem; }
.inkf-boxes li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1rem;
  padding-block: .7rem .8rem;
  background: var(--brushline) left bottom / 100% 3px no-repeat;
}
.inkf-box-name { font-size: 1.15rem; font-weight: 700; }
.inkf-box-need { grid-column: 1; font-size: .98rem; color: var(--wash-text); }
.inkf-box-state { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 1rem; font-weight: 700; color: var(--wash-text); }
.inkf-boxes li.on .inkf-box-state { color: var(--cinnabar); }
.inkf-voters li {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr) auto;
  align-items: center;
  column-gap: .75rem;
  min-height: 3.2rem;
  padding-block: .35rem;
  background: var(--brushline) left bottom / 100% 3px no-repeat;
  font-variant-numeric: lining-nums tabular-nums;
}
.inkf-voters .pos { font-weight: 800; font-size: 1.15rem; text-align: center; }
.inkf-voters .seal { --s: 2.1rem; font-size: 1rem; }
.inkf-voters .name { font-weight: 700; overflow-wrap: anywhere; }
.inkf-voters .votes { font-weight: 700; }
.inkf-voters small { font-size: .9rem; font-weight: 500; color: var(--wash-text); }
.inkf-rules > li, .inkf-rules ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: .7rem;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.inkf-rules > li::before {
  content: "";
  position: absolute; left: 0; top: .66em;
  width: .42rem; height: .42rem; background: var(--cinnabar);
  transform: rotate(45deg);
}
.inkf-rules ul { margin-top: .5rem; }
.inkf-rules ul li { margin-bottom: .2rem; }
.inkf-rules ul li::before { content: ""; position: absolute; left: .2rem; top: .8em; width: .5rem; height: 1.5px; background: var(--ink-soft); }
.inkf-rules b { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .inkf-head { grid-column: 1 / span 6; }
  .inkf-sheet { grid-column: 7 / span 6; }
  .inkf-intro, .inkf-notes, .inkf-steps { margin-left: 0; }
}
@media (max-width: 900px) {
  .inkf-head, .inkf-sheet { grid-column: 1 / -1; }
  .inkf-head { max-width: 36rem; }
  .inkf-sheet { width: 100%; max-width: 40rem; justify-self: start; }
  .inkf-intro, .inkf-notes, .inkf-steps { margin-left: calc(3.25rem + 1.25rem); }
  .inkf-enso { grid-column: 1 / -1; width: min(62vw, 300px); margin-bottom: 2rem; }
  .inkf-wheel-copy, .inkf-wheel-copy:only-child { grid-column: 1 / -1; }
  .inkf-event { grid-template-columns: 1fr; }
  .inkf-glyph { font-size: 92vw; top: 64px; }
  /* phones and tablets: the sheet comes right after the heading, the notes follow it */
  .inkf-grid { row-gap: 0; }
  .inkf-head { display: contents; }
  .inkf-head > * { grid-column: 1 / -1; max-width: 36rem; }
  .inkf-sheet { order: 2; margin-top: 48px; }
  .inkf-notes, .inkf-steps { order: 3; margin-top: 56px; }
}
@media (max-width: 560px) {
  .inkf-grid { padding-top: 112px; }
  .inkf-head h1 { font-size: 2.45rem; }
  .inkf-head .sec-head .seal { margin-top: .2rem; }
  .inkf-intro, .inkf-notes, .inkf-steps { margin-left: 0; }
  .inkf-sheet {
    margin: 40px 5px 5px;
    width: calc(100% - 10px);
    padding: 40px 18px 26px;
    box-shadow: 0 0 0 4px var(--paper-hi), 0 0 0 5px var(--ink), 0 26px 44px -30px rgba(20,18,16,.45);
  }
  .inkf-corner { --s: 2.7rem; top: -1.45rem; right: 1.1rem; }
  .login-links { flex-direction: column; }
  .inkf-cert { padding: 1.1rem 1rem .9rem; }
  .inkf-stamp { --s: 4rem; top: -1.25rem; right: .6rem; }
  .inkf-cert-list div:first-child { padding-right: 3.6rem; }
  .inkf-done { padding-right: 4.6rem; }
  .inkf-done .inkf-stamp { --s: 3.6rem; }
  .inkf-done h2 { font-size: 1.6rem; }
  .inkf-wheel-copy h2 { font-size: 2rem; }
  .inkf-prizes li { font-size: 1.12rem; }
}
