/* Signing in (public/js/login.js): the form in the editor's dialog and on /account. Its colours are
   the app's own, so it looks the same over any design. */
.join, .acc { --j-ink: #3c0a22; --j-soft: #7d5a6a; --j-line: #eddcd2; --j-brand: #b8104a; --j-blush: #fbe4ea; --j-cream: #fdf8f4; --j-head: 'Rubik', 'Heebo', system-ui, sans-serif; }
.join { display: grid; gap: 10px; text-align: start; }
.join [hidden], .acc [hidden] { display: none !important; }
.join .ic, .acc .ic, .join-badge .ic, .join-gets .ic { display: inline-grid; place-items: center; flex: none; }
.join .ic svg, .acc .ic svg, .join-badge .ic svg, .join-gets .ic svg { display: block; width: 100%; height: 100%; }
.join-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 4px; border-radius: 999px; background: #f8eee8; }
.join-tabs button {
  appearance: none; height: 40px; border: 0; border-radius: 999px; background: none; color: var(--j-soft); font: 700 .95rem var(--j-head); cursor: pointer;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.join-tabs button[aria-selected='true'] { background: #fff; color: var(--j-brand); box-shadow: 0 4px 12px -6px rgba(60, 10, 34, .45), 0 0 0 1px rgba(60, 10, 34, .06); }
.join-field { position: relative; display: block; }
.join-field > .ic { position: absolute; inset-inline-start: 15px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--j-brand); pointer-events: none; }
.join-field > .ic svg, .join-eye .ic svg { display: block; width: 100%; height: 100%; }
.join-field input {
  width: 100%; height: 54px; padding: 0 46px; border: 2px solid var(--j-line); border-radius: 16px; background: #fff; color: var(--j-ink);
  font: 500 1.04rem 'Heebo', system-ui, sans-serif; transition: border-color .18s ease;
}
.join-field input[dir='ltr'] { text-align: right; }
.join-field input:focus { outline: none; border-color: var(--j-brand); }
.join-eye { appearance: none; position: absolute; inset-inline-end: 6px; top: 6px; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 12px; background: none; color: var(--j-soft); cursor: pointer; }
.join-eye .ic { width: 20px; height: 20px; }
.join-eye[aria-pressed='true'] { color: var(--j-brand); }
.join-check { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 4px; color: var(--j-soft); font-size: .92rem; cursor: pointer; }
.join-check input { flex: none; width: 20px; height: 20px; accent-color: var(--j-brand); }
.join-status { min-height: 0; margin: 0; color: #b42318; font-size: .92rem; font-weight: 600; text-align: center; }
.join-status:not(:empty) { padding: 9px 12px; border-radius: 12px; background: #fdecec; }
.join-status.is-good:not(:empty) { background: #e9f6ec; color: #17663a; }
.join-go {
  appearance: none; height: 56px; border: 0; border-radius: 999px; background: var(--j-brand); color: #fff; font: 800 1.1rem var(--j-head); cursor: pointer;
  box-shadow: 0 14px 26px -14px rgba(184, 16, 74, .9); transition: transform .15s ease, opacity .15s ease;
}
.join-go:active { transform: scale(.98); }
.join-go:disabled { opacity: .55; }
.join-legal { margin: 0; color: var(--j-soft); font-size: .8rem; text-align: center; }
.join-legal a { color: var(--j-brand); font-weight: 600; }
.join :focus-visible { outline: 3px solid color-mix(in srgb, var(--j-brand) 45%, transparent); outline-offset: 2px; }

/* in the editor: the gift about to go out, and the way back to it */
.join-hero { position: relative; margin: -4px -6px 14px; }
.join-hero img { display: block; width: 100%; height: 132px; object-fit: cover; border-radius: 20px; }
.join-hero::after { content: ''; position: absolute; inset: 0; border-radius: 20px; box-shadow: inset 0 0 0 1px rgba(60, 10, 34, .06); }
.join-badge { position: absolute; z-index: 1; bottom: -22px; left: 50%; display: grid; place-items: center; width: 52px; height: 52px; margin-left: -26px; border-radius: 50%; background: #b8104a; color: #fff; box-shadow: 0 0 0 5px #fff, 0 12px 22px -10px rgba(60, 10, 34, .6); }
.join-badge .ic { width: 24px; height: 24px; }
.join-gets { display: flex; justify-content: center; gap: 18px; margin: 0 0 4px; color: var(--u-soft, #7d5a6a); font-size: .82rem; font-weight: 600; }
.join-gets span { display: grid; justify-items: center; gap: 4px; }
.join-gets .ic { width: 22px; height: 22px; color: #b8104a; }

/* a short phone: the button that sends it is on the screen from the start */
@media (max-height: 720px) {
  .join-hero img { height: 74px; }
  .join-gets { display: none; }
}

/* ---------- /account: my sites ---------- */
body.acc { margin: 0; min-height: 100vh; min-height: 100dvh; background: #fdf6ee; color: var(--j-ink); font: 16px/1.5 'Heebo', system-ui, sans-serif; }
.acc *, .acc *::before { box-sizing: border-box; }
.acc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 980px; margin: 0 auto; padding: 18px 18px 6px; }
.acc-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--j-ink); font: 800 1.25rem var(--j-head); text-decoration: none; direction: ltr; }
.acc-brand svg { width: 26px; height: 26px; color: var(--j-brand); }
.acc-new { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; background: var(--j-brand); color: #fff; font: 700 .96rem var(--j-head); text-decoration: none; }
.acc-new .ic { width: 18px; height: 18px; }
.acc-main { max-width: 980px; margin: 0 auto; padding: 10px 18px 60px; }
.acc-card { width: min(440px, 100%); margin: 22px auto 0; padding: 26px 22px; border-radius: 28px; background: #fff; box-shadow: 0 34px 80px -50px rgba(60, 10, 34, .6), 0 0 0 1px rgba(60, 10, 34, .05); }
.acc-card h1 { margin: 0 0 16px; text-align: center; font: 800 1.6rem var(--j-head); }
.acc-face { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 12px; border-radius: 50%; background: var(--j-blush); color: var(--j-brand); }
.acc-face .ic { width: 32px; height: 32px; }
.acc-hello { margin: 12px 0 16px; font: 800 clamp(1.7rem, 7vw, 2.4rem)/1.15 var(--j-head); }
.acc-hello span { color: var(--j-brand); }
.acc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.acc-site { display: grid; overflow: hidden; border-radius: 22px; background: #fff; box-shadow: 0 22px 44px -32px rgba(60, 10, 34, .6), 0 0 0 1px rgba(60, 10, 34, .06); }
.acc-site img { display: block; width: 100%; aspect-ratio: 1.91; object-fit: cover; }
.acc-in { display: grid; gap: 10px; padding: 14px 16px 16px; }
.acc-in b { font: 700 1.05rem/1.35 var(--j-head); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.acc-state { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--j-soft); font-size: .86rem; font-weight: 600; }
.acc-state span { display: inline-flex; align-items: center; gap: 5px; }
.acc-state .ic { width: 16px; height: 16px; color: var(--j-brand); }
.acc-dot { width: 9px; height: 9px; border-radius: 50%; background: #c9b8b0; }
.acc-dot.is-live { background: #1fa855; box-shadow: 0 0 0 4px rgba(31, 168, 85, .18); }
.acc-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.acc-acts a, .acc-acts button, .acc-set button, .acc-set summary {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 44px; padding: 0 14px; border: 0; border-radius: 999px;
  background: var(--j-blush); color: var(--j-brand); font: 700 .94rem var(--j-head); text-decoration: none; cursor: pointer;
}
.acc-acts .is-main { background: var(--j-brand); color: #fff; }
.acc-acts .is-wide { grid-column: 1 / -1; }
.acc-acts .ic { width: 17px; height: 17px; }
.acc-empty { padding: 38px 20px; border: 2px dashed var(--j-line); border-radius: 24px; text-align: center; color: var(--j-soft); }
.acc-empty .acc-new { margin-top: 14px; }
.acc-h2 { margin: 30px 0 12px; font: 800 1.2rem var(--j-head); }
.acc-set { display: grid; gap: 10px; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--j-line); }
.acc-set details { border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px rgba(60, 10, 34, .06); }
.acc-set summary { justify-content: space-between; width: 100%; height: 54px; background: none; color: var(--j-ink); list-style: none; }
.acc-set summary::-webkit-details-marker { display: none; }
.acc-set summary .ic { width: 18px; height: 18px; color: var(--j-soft); transition: transform .2s ease; }
.acc-set details[open] summary .ic { transform: rotate(-90deg); }
.acc-set details > div, .acc-set details > form { padding: 0 16px 18px; }
.acc-row { display: flex; flex-wrap: wrap; gap: 10px; }
.acc-set .is-quiet { background: none; box-shadow: inset 0 0 0 1.5px var(--j-line); color: var(--j-ink); }
.acc-set .is-danger { background: #fdecec; color: #b42318; }
.acc-note { margin: 0 0 10px; color: var(--j-soft); font-size: .9rem; }
.acc a:focus-visible, .acc button:focus-visible, .acc summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--j-brand) 45%, transparent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .join *, .acc * { transition: none !important; } }
