/* CoverTree Rewards — the sign-in pages and My account (agent.html only; the kit is css/shop.css).
   js/shop/signin.js: #login, #forgot, #welcome.<link>, #reset.<link>. js/shop/account.js: #account.
   One calm card under the logo for the signed-out pages; plain panels, one under another, for My account. Everything is
   set in rem and wraps, so it holds at 320 px wide with Text size at its largest. Colours are css/shop.css's tokens only. */

/* ───────── the signed-out pages: the logo, one card, how to get help ───────── */
.sh-sign { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; padding-block: clamp(1.5rem, 6vh, 4rem) 3rem; }
/* the logo with its two words; on a very narrow screen "Rewards" may drop under "covertree" */
.sh-sign__brand .sh-brand { flex-wrap: wrap; justify-content: center; row-gap: 0.25rem; }
.sh-sign__brand .sh-brand__mark { width: 2.4rem; }
.sh-sign__brand .sh-brand__word { font-size: 1.4rem; }
.sh-sign__brand .sh-brand__sub { display: inline-block; font-size: 1.05rem; }
.sh-sign__card { display: flex; flex-direction: column; gap: 1.25rem; width: 100%; max-width: 30rem; padding: 1.4rem 1rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); box-shadow: var(--shadow); }
@media (min-width: 40em) { .sh-sign__card { padding: 2.25rem 2rem; } }
.sh-sign__title { font-size: clamp(1.45rem, 1.25rem + 1vw, 1.8rem); }
.sh-sign__card .lede { font-size: 1.05rem; }
/* a long sentence on a button wraps inside the card instead of pushing it wider */
.sh-sign__card .btn--lg { padding-inline: 1rem; }
/* a quiet link under a form ("Forgot your password?", "Back to sign in"): its words line up with the fields */
.sh-sign__link { align-self: flex-start; margin-left: -0.75rem; }
.sh-sign__first { padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--ink-2); }
.sh-sign__who { color: var(--ink-2); }
.sh-sign__who b { color: var(--ink); overflow-wrap: anywhere; }
.sh-sign__choices { display: flex; flex-direction: column; gap: 0.75rem; }
.sh-sign__busy { display: flex; align-items: center; justify-content: center; gap: 0.75rem; min-height: 7rem; color: var(--ink-2); font-weight: 600; }
.sh-sign__help { max-width: 30rem; color: var(--ink-2); text-align: center; }
/* where a notice goes, above or inside a form: it takes no room while it is empty */
.sh-note:empty { display: none; }

/* ───────── a password box, "Show password" under it, and the rules of a new password ───────── */
.sh-pw { display: flex; flex-direction: column; }
.sh-pw__show { align-self: flex-start; }
.sh-rules { display: flex; flex-direction: column; gap: 0.6rem; padding: 1rem 1.1rem; border-radius: var(--r); background: var(--soft); }
.sh-rules__t { font-weight: 600; }
.sh-rules__list { display: flex; flex-direction: column; gap: 0.5rem; }
/* a rule: an empty ring until it is met, then a filled ring with a tick (the words say "Done" to a screen reader) */
.sh-rules__it { display: flex; align-items: flex-start; gap: 0.65rem; color: var(--ink-2); }
.sh-rules__mark { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; border: 2px solid var(--edge); border-radius: 50%; color: transparent; }
.sh-rules__mark .icon { width: 0.95rem; height: 0.95rem; stroke-width: 3; }
.sh-rules__it.is-met { color: var(--ink); }
.sh-rules__it.is-met .sh-rules__mark { border-color: var(--ok); background: var(--ok); color: var(--bg); }
/* how many rules are met, in words ("Your password meets 2 of the 3 rules."): nothing until something is typed */
.sh-rules__said { color: var(--ink-2); font-size: 0.95rem; }
.sh-rules__said:empty { display: none; }

/* ───────── My account: who is signed in, then one panel for each thing to do ───────── */
.sh-account__panels { display: grid; gap: 1.25rem; max-width: 46rem; }
.sh-account__email { color: var(--ink-2); overflow-wrap: anywhere; }
/* Text size and Screen: big round choices, side by side where there is room; the one in force is marked */
.sh-choice { display: grid; gap: 0.75rem; }
@media (min-width: 40em) { .sh-choice { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sh-choice__it { display: flex; align-items: center; gap: 0.75rem; min-height: 3.5rem; padding: 0.7rem 1rem; border: 2px solid var(--edge); border-radius: var(--r); background: var(--bg); font-weight: 600; cursor: pointer; }
.sh-choice__it:hover { border-color: var(--ink); }
.sh-choice__it input { flex: none; width: 1.55rem; height: 1.55rem; margin: 0; accent-color: var(--brand); cursor: pointer; }
.sh-choice__it.is-on { border-color: var(--brand); background: var(--brand-soft); }
/* "Sign out on all my devices": quieter, under Sign out, with what it does said beneath it */
.sh-account__all { display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.sh-account__all .btn { margin-left: -0.75rem; text-align: left; }
.sh-account__line { display: flex; align-items: flex-start; gap: 0.65rem; }
.sh-account__line > .icon { margin-top: 0.15em; color: var(--brand); }
.sh-account__portal { font-weight: 600; }
