/* The log-in page, and the waitlist page, which shares its form look
   (waitlist.css adds what only it has). The kit's look: a big serif title,
   pill buttons, thin dividers. Colours, type, the nav and the footer come
   from site.css; the kit has no text boxes, so they are drawn here from its
   colours and shapes. */

main {
  max-width: calc(var(--page-width) + 2 * var(--gutter));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 380px);
  gap: clamp(40px, 7vw, 100px);
  justify-content: space-between;
  align-items: start;
  padding: clamp(32px, 6vw, 72px) var(--gutter) clamp(56px, 8vw, 120px);
}
.auth-card {
  min-width: 0;
}
/* The small mono line above the title ("Account", "Waitlist"). */
.tag {
  display: block;
  margin-bottom: 24px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: -0.01em;
  color: var(--caption);
}
h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 60px);
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.lede {
  margin: 24px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}

form {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-top: 14px;
}
label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}
input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  padding: 14px 16px;
  transition:
    border-color 0.12s,
    box-shadow 0.12s;
}
input::placeholder,
textarea::placeholder {
  color: var(--ink-3);
}
input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
input[aria-invalid="true"] {
  border-color: var(--critical);
}
input:disabled {
  opacity: 0.55;
}
.pw-wrap {
  position: relative;
}
.pw-wrap input {
  padding-right: 76px;
}
.show-pw {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink-2);
  background: none;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 8px 12px;
  cursor: pointer;
}
.show-pw:hover {
  color: var(--ink);
  background: var(--surface);
}
.text-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
}
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hint {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-3);
}

/* The form's button: the kit's olive pill, full width. */
.submit {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.025em;
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: var(--radius-pill);
  padding: 14px 22px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.submit:hover {
  background: var(--accent-hover);
  color: #ffffff;
}
.submit:disabled {
  opacity: 0.55;
  cursor: default;
  background: var(--accent);
  color: var(--accent-ink);
}
/* The second choice beside it: the kit's pale-green pill. */
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--accent-soft-ink);
  text-decoration: none;
  background: var(--accent-soft);
  border: 0;
  border-radius: var(--radius-pill);
  padding: 14px 22px;
  cursor: pointer;
}
.ghost:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

.spin {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--accent-ink) 35%, transparent);
  border-top-color: var(--accent-ink);
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .spin {
    animation-duration: 2.4s;
  }
}

.message {
  margin: 24px 0 0;
  padding: 14px 18px;
  border-radius: var(--radius-control);
  font-size: 14px;
  line-height: 1.55;
  background: var(--card-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.message b {
  color: var(--ink);
}
.message.bad {
  border-color: var(--critical);
  color: var(--ink);
}
.message.good {
  border-color: var(--accent-hover);
  background: var(--accent-soft);
  color: var(--accent-soft-ink);
}
.switch {
  margin: 32px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
}
.signed-in .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.signed-in .submit {
  margin-top: 0;
}
.delete-account {
  margin: 24px 0 0;
}
.text-link.quiet {
  color: var(--ink-3);
}
.text-link.quiet:hover {
  color: var(--critical);
}

/* ---- beside the form: the kit's numbered list, with dividers ---- */
.aside {
  padding-top: 8px;
}
.aside h2 {
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--caption);
}
.aside ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.aside li {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-2);
}
.aside li b {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.aside svg {
  flex: none;
  margin-top: 2px;
  color: var(--ink);
}
.aside .no-account {
  margin-top: 24px;
  padding: 20px 22px;
  background: var(--accent-soft);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.5;
  color: var(--accent-soft-ink);
}
.aside .no-account a {
  color: inherit;
  font-weight: 700;
}

@media (max-width: 900px) {
  main {
    grid-template-columns: minmax(0, 560px);
    justify-content: start;
  }
  .aside {
    padding-top: 0;
  }
}
