/*
 * Life Baker Refer: sign in, forgot password, check your email, reset, claim,
 * and the remaining account pages (Refer redesign, Public §5). Only what
 * refer.css does not already give these pages.
 */

/* "Back to sign in" above the title. */
.acc-back {
    align-self: flex-start; min-height: 48px; display: inline-flex; align-items: center; gap: 6px;
    font-size: 15px; font-weight: 700; text-decoration: none;
}
.acc-back + .lbr-page__head { margin-top: -8px; }

/* A fieldset that looks like any other field: legend as the label. Spaced
   with margins, because older Android WebViews ignore flex on fieldsets. */
.lbr-group { display: block; border: 0; padding: 0; margin: 0; min-width: 0; }
.lbr-group > legend { display: block; padding: 0; margin: 0 0 8px; font-size: 15px; font-weight: 600; line-height: 1.5; }
.lbr-group > legend ~ * + * { margin-top: 8px; }
.lbr-group > legend small, .lbr-field > label small { font-weight: 400; font-size: 15px; color: var(--muted); }

/* Radio cards: a field with an error is red until one is picked. Gender: two
   short answers side by side on every width. */
.lbr-radio { line-height: 1.35; }
.lbr-radios.is-invalid .lbr-radio { border-color: var(--error); }
.lbr-radios--pair { grid-template-columns: 1fr 1fr; }

/* Day / Month / Year: the month reads in full on a 320 px phone. */
.lbr-dob select.lbr-input { padding: 0 8px; }

/* "Keep me signed in": one line, a full-size tap target. */
.acc-keep { min-height: 48px; align-items: center; font-size: 15px; }
.acc-keep input { margin-top: 0; }

/* The consent box keeps its links tappable. */
.lbr-checkbox a { padding: 4px 0; }

/* Classes: tiles of real checkboxes, two to a row on phones, three wider. */
.acc-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.acc-tile {
    min-height: 52px; padding: 10px 12px; border: 1.5px solid rgba(255, 255, 255, 0.14); border-radius: 14px;
    background: rgba(255, 255, 255, 0.04); align-items: center; font-size: 15px; font-weight: 600;
}
.acc-tile input { margin-top: 0; }
.acc-tiles.is-invalid .acc-tile { border-color: var(--error); }

/* Two short fields side by side from tablet width. */
.acc-pair { display: grid; grid-template-columns: 1fr; gap: 20px; }

/* The code card on Claim and Complete your profile. */
.acc-code { gap: 6px; border-radius: 20px; }
.acc-code .lbr-hero__help { margin-top: 2px; overflow-wrap: anywhere; }

/* The details we hold, and how to change them. */
.acc-held { gap: 10px; }

/* "Send it again" inside a Check your email card, and the text link under it. */
.acc-resend { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.lbr-msg .lbr-msg__body { overflow-wrap: anywhere; }
.lbr-msg .lbr-headlink { gap: 6px; font-size: 15px; }

/* Bots fill every field. People never see this one. */
.acc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (min-width: 600px) {
    .acc-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
    .acc-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
