/* livelinks account screens: dark, simple, one thing per screen */
:root {
  --bg: #161616;
  --panel: #212121;
  --field: #1c1c1c;
  --line: #343434;
  --text: #f8f6f2;
  --muted: #a3a09b;
  --coral: #fb9280;
  --on-coral: #1a1a1a;
  --error: #ff8a7a;
  --ok: #7fd4a0;
  --radius: 12px;
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: flex; flex-direction: column; align-items: center;
  padding: 40px 16px 32px;
}
a { color: inherit; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo img { width: 38px; height: 38px; }
.logo span { font-size: 24px; letter-spacing: -.035em; line-height: 1; }
.logo b { font-weight: 800; }

.screen { width: 100%; max-width: 380px; margin-top: 56px; }
h1 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.sub { color: var(--muted); margin-top: 8px; }

form { margin-top: 28px; display: grid; gap: 14px; }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
input {
  width: 100%; height: 52px; padding: 0 16px;
  font: inherit; color: var(--text);
  background: var(--field); border: 1px solid var(--line); border-radius: var(--radius);
}
input::placeholder { color: #6f6c68; }
input:focus { outline: none; border-color: var(--coral); }
input[aria-invalid="true"] { border-color: var(--error); }

/* the "livelinks.me/ yourname" box */
.claim { display: flex; align-items: center; height: 60px; background: var(--field); border: 1px solid var(--line); border-radius: var(--radius); }
.claim:focus-within { border-color: var(--coral); }
.claim.bad { border-color: var(--error); }
.claim span { padding-left: 16px; color: var(--muted); font-size: 18px; white-space: nowrap; }
.claim input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; padding-left: 1px; font-size: 18px; font-weight: 600; }
.hint { font-size: 14px; color: var(--muted); min-height: 21px; }
.hint.error { color: var(--error); }
.hint.ok { color: var(--ok); }

.btn {
  height: 52px; width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 700; border-radius: var(--radius); cursor: pointer;
  background: var(--coral); color: var(--on-coral); border: 0; text-decoration: none;
  transition: transform .15s, opacity .15s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.secondary { background: var(--panel); color: var(--text); border: 1px solid var(--line); }
.btn:focus-visible, .icon-btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 24px 0 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* social sign-in as one tidy row of icons */
.socials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.icon-btn {
  height: 52px; display: grid; place-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.icon-btn:hover { border-color: #4a4a4a; }
.icon-btn img { width: 22px; height: 22px; }
.icon-btn img.invert { filter: invert(1); }

.chosen { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 8px 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.chosen button { background: none; border: 0; color: var(--coral); font: inherit; font-size: 14px; cursor: pointer; padding: 0; }

.alert { margin-top: 16px; padding: 12px 14px; border-radius: var(--radius); font-size: 14px; background: #3a1f1c; color: var(--error); }
.small-link { font-size: 14px; color: var(--muted); }
.row { display: flex; justify-content: space-between; align-items: baseline; }
.code-toggle { background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; padding: 0; text-align: left; text-decoration: underline; text-underline-offset: 3px; justify-self: start; }
.foot { margin-top: 28px; color: var(--muted); font-size: 15px; text-align: center; }
.foot a { color: var(--text); font-weight: 700; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.terms { margin-top: 14px; font-size: 12px; color: #77736e; text-align: center; }
.done { text-align: center; }
.done p { margin-top: 10px; color: var(--muted); }
[hidden] { display: none !important; }

@media (max-width: 420px) { .screen { margin-top: 40px; } h1 { font-size: 27px; } }

/* shared bits used by the claim, reset and dashboard screens */
.field { display: grid; gap: 6px; }
.claim + .hint, .field .hint { margin-top: 2px; }
details summary { cursor: pointer; font-size: 14px; color: var(--muted); list-style: none; text-decoration: underline; text-underline-offset: 3px; }
details summary::-webkit-details-marker { display: none; }
details[open] summary { margin-bottom: 8px; }
.link { color: var(--text); font-weight: 700; }
input[readonly] { color: var(--muted); }

/* sign-up consent line links, and the small legal footer on every account screen */
.terms a, .consent a { color: var(--muted); text-underline-offset: 2px; }
.terms a:hover, .consent a:hover { color: var(--text); }
.consent { margin-top: 12px; font-size: 12px; line-height: 1.5; color: #77736e; text-align: center; }
.legal-foot { margin-top: auto; padding-top: 40px; width: 100%; max-width: 560px; align-self: center; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: 12px; }
.legal-foot a { color: #77736e; text-decoration: none; }
.legal-foot a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.embedded .legal-foot { display: none; }

/* already signed in: carry on the way you last logged in */
.again { position: relative; text-align: center; }
.login-back { position: fixed; top: 22px; left: 18px; display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px 8px 8px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); color: var(--text); font: 600 14px/1 "Public Sans", sans-serif; cursor: pointer; z-index: 5; }
.login-back:hover { border-color: #4a4a4a; }
.login-back svg { width: 18px; height: 18px; }
.who { display: grid; justify-items: center; gap: 2px; }
.who-av { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; margin-bottom: 14px;
  background: var(--panel); border: 1px solid var(--line); font-size: 30px; font-weight: 800; animation: againIn .6s cubic-bezier(.16, 1, .3, 1) both; }
.who-av img { width: 100%; height: 100%; object-fit: cover; }
.who h1 { animation: againIn .6s .05s cubic-bezier(.16, 1, .3, 1) both; }
.who .sub { animation: againIn .6s .1s cubic-bezier(.16, 1, .3, 1) both; }
.last-wrap { position: relative; margin-top: 40px; padding: 7px; border: 1.5px solid var(--coral); border-radius: calc(var(--radius) + 7px); animation: againIn .6s .15s cubic-bezier(.16, 1, .3, 1) both; }
.last-tag { position: absolute; left: 16px; top: 0; transform: translateY(-50%); padding: 2px 9px; border-radius: 999px; background: var(--bg);
  color: var(--coral); font-size: 12px; font-weight: 700; white-space: nowrap; }
.last-btn { height: 56px; font-size: 16.5px; }
.last-btn img { width: 22px; height: 22px; }
.last-btn img.invert { filter: none; }
.again .or { margin-top: 28px; }
.again .socials { animation: againIn .6s .2s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes againIn { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .again * { animation: none !important; } }

/* not signed in: the way you used last time gets a coral outline and a small tag */
.icon-btn { position: relative; }
.icon-btn.was-last { border-color: var(--coral); box-shadow: 0 0 0 1px var(--coral); }
.was-last-tag { position: absolute; left: 50%; top: 0; transform: translate(-50%, -55%); padding: 1px 7px; border-radius: 999px; background: var(--bg);
  color: var(--coral); font-size: 10.5px; font-weight: 700; white-space: nowrap; border: 1px solid var(--coral); }
@media (max-width: 560px) {
  body:has(#again:not([hidden])) { padding-top: 78px; }      /* room for the back button above the logo on phones */
  .login-back { top: 18px; left: 14px; }
}

/* sign up: TikTok as the main option, the other three as a quiet row underneath */
.tt-main { width: 100%; height: 60px; margin-top: 28px; display: flex; align-items: center; gap: 14px; padding: 0 18px; border-radius: var(--radius);
  background: var(--text); color: #141414; border: 0; cursor: pointer; text-align: left; transition: transform .15s, opacity .15s; }
.tt-main:hover { opacity: .94; }
.tt-main:active { transform: scale(.99); }
.tt-main img { width: 22px; height: 22px; flex: none; }
.tt-main span { display: grid; gap: 1px; }
.tt-main b { font-size: 16px; font-weight: 700; }
.tt-main small { font-size: 12.5px; color: #6b6864; font-weight: 500; }
.socials.three { grid-template-columns: repeat(3, 1fr); margin-top: 10px; }
#step2 .or { margin-top: 26px; }
#step2 form { margin-top: 18px; }
#step2 .terms { margin-top: 18px; }
