/* Join, sign in, account, unsubscribed and the sign-in confirm page. Loaded after site.css and scene.css.
   js/accounts.js and js/unsubscribed.js drive these pages and set a few classes themselves: the message boxes
   (.msg, .msg.bad, .msg.good) and the Founder badge (.badge). They are styled here, so the script stays as it is. */

.acct-page { padding-bottom: var(--space-8); }

/* The card that stands on the hill, half over the scene band */
.acct-card {
  position: relative; z-index: 6;
  width: min(100%, 37rem);
  margin: -52px auto 0;
  padding: 0 var(--gutter);
}
.acct-card .panel + .panel { margin-top: var(--space-6); }
.acct-card .panel { padding: 1.3rem 1.25rem 1.2rem; }
@media (min-width: 760px) { .acct-card .panel { padding: 1.7rem 1.9rem 1.5rem; } }
.acct-card h1 { font-size: clamp(2.1rem, 8.5vw, 3.1rem); letter-spacing: -0.02em; margin-bottom: var(--space-3); }
.acct-card h2 { font-size: clamp(1.6rem, 6vw, 2.1rem); margin-bottom: var(--space-3); }
.acct-card .place { margin-bottom: 0.35rem; }
.acct-card p { max-width: 60ch; }
.acct-card .panel > p:last-child { margin-bottom: 0; }

/* The note pinned to the join form about what founders get */
.perk {
  background: #fff1c2; border: var(--line); border-radius: var(--radius-m);
  padding: 0.85rem 1rem 0.75rem; margin: 0 0 var(--space-4); box-shadow: var(--shadow-s);
}
.perk p { margin: 0 0 0.6em; font-size: 1.05rem; }
.perk p:last-child { margin-bottom: 0; }
.perk strong { font-family: var(--serif); font-size: 1.2em; font-weight: 800; }

/* Forms: .field, .tick and the buttons come from site.css. The honeypot is for bots, never seen. */
.acct-form { margin: var(--space-4) 0; }
.acct-form .field { margin-bottom: var(--space-4); }
.acct-form .tick { margin-bottom: var(--space-3); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-4); margin: var(--space-4) 0 var(--space-3); }
.actions .btn[disabled] { cursor: wait; }
@media (max-width: 479px) {
  .actions .btn { flex: 1 1 100%; }
}
.keep {
  font-size: var(--step--1); color: var(--ink-soft);
  border-top: 2px dashed rgba(42, 29, 18, 0.25); padding-top: var(--space-3); margin: var(--space-4) 0 0;
}
.keep a { color: inherit; }

/* Message boxes the script fills in */
.msg {
  border: var(--line); border-left-width: 10px; border-radius: var(--radius-m);
  background: var(--ice); border-left-color: var(--lake);
  box-shadow: var(--shadow-s); padding: 0.75rem 1rem; margin: 0 0 var(--space-4);
}
.msg[hidden] { display: none; }
.msg.bad { background: #fde7df; border-left-color: var(--ember-text); }
.msg.good { background: #eaf6dc; border-left-color: var(--meadow); }

/* "Check your email" */
.sent h1 { color: var(--meadow); }
.sent:focus { outline: none; }
.sent:focus-visible { outline: 3px solid #fff; box-shadow: var(--shadow-l), 0 0 0 7px var(--focus); }

/* The account facts */
.facts { margin: var(--space-4) 0; display: grid; gap: 0; }
.facts > div {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.2rem 1rem;
  padding: 0.7rem 0; border-bottom: 2px dashed rgba(42, 29, 18, 0.25);
}
.facts > div:first-child { border-top: 2px dashed rgba(42, 29, 18, 0.25); }
.facts dt { font-weight: 800; }
.facts dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.facts .badge {
  display: inline-block; font-weight: 800; font-size: 0.95rem; line-height: 1.2;
  background: var(--gold); border: 2px solid var(--ink); border-radius: var(--radius-pill);
  padding: 0.2em 0.8em; box-shadow: 0 2px 0 var(--ink);
}
.acct-card .tick { margin-top: var(--space-4); }

/* Delete: the danger buttons and the "are you sure" box */
.btn--danger { background: var(--ember-text); color: #fff; }
.btn--danger-ghost { color: var(--ember-text); }
.confirm {
  margin-top: var(--space-4); padding: 1rem 1.1rem 0.9rem;
  background: #fde7df; border: var(--line); border-left-width: 10px; border-left-color: var(--ember-text);
  border-radius: var(--radius-m);
}
.confirm[hidden] { display: none; }
.confirm > p { margin-bottom: 0.4rem; }
.confirm .actions { margin-bottom: 0; }
