/* HailCare: account (confirm email, forgot and reset password). Only what the
   shared components don't cover. The pages themselves (views/account/) use
   the log-in column: .container--narrow.public-auth. */

/* The banner at the top of signed-in pages while the email address is not
   confirmed (partials/verify-banner.ejs). A note on the panel tint: one
   sentence and its button, side by side from about 360px wide (below that
   the button wraps under the sentence). Kept short, because every account
   that existed before email starts unconfirmed: it moves each page's main
   action down by its height plus 16px. Flash messages that follow sit 8px
   below it, as they do below each other. */
.account-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--sp-3) var(--sp-5);
  margin-bottom: var(--sp-4);
  padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-4);
  border-radius: var(--r-md);
  background: var(--card); border: 1px solid var(--rule); box-shadow: var(--shadow-card);
}
.account-banner > p { flex: 1 1 10rem; min-width: 0; }
.account-banner:has(+ .flashes) { margin-bottom: var(--sp-2); }

/* Log in: "Forgot your password?" right under the password box (the form's
   24px gap less 16px), as a 44px tap target. */
.account-forgot { margin-top: calc(var(--sp-4) * -1); }
.account-forgot a { display: inline-flex; align-items: center; min-height: var(--control-h-sm); font-weight: var(--fw-semibold); }

/* "Check your email" and the invalid-link page: the explanation, then a
   muted line with the next step. */
.account-text { display: grid; gap: var(--sp-4); }
.account-text .lead { overflow-wrap: anywhere; }
/* The invalid-link page's one button, full width like Log in. */
.account-actions { margin-top: var(--sp-6); }
.account-actions > form { width: 100%; }

/* A long address in a flash ("We sent a link to …") wraps instead of
   widening the page. */
.flash__body { min-width: 0; overflow-wrap: anywhere; }

/* "Continue with Google" (partials/google-button.ejs) above the log-in and
   sign-up forms: the fill, stroke and text colors Google's branding
   guidelines give its sign-in button, light and dark, with its "G" at 18px
   and 10px from the words, at the height of HailCare's other controls. Its
   own look, so it never counts as the page's primary button. Then "or"
   between two rules, before the email form. */
.btn--google {
  gap: 10px; border-width: 1px;
  background: #FFFFFF; color: #1F1F1F; border-color: #747775;
  font-family: Roboto, var(--font); font-weight: 500;
}
.btn--google:hover { background: #F2F2F2; color: #1F1F1F; border-color: #747775; }
.btn--google:active { background: #E6E6E6; }
@media (prefers-color-scheme: dark) {
  .btn--google { background: #131314; color: #E3E3E3; border-color: #8E918F; }
  .btn--google:hover { background: #222224; color: #E3E3E3; border-color: #8E918F; }
  .btn--google:active { background: #2D2D30; }
}
.google-g { flex: none; width: 18px; height: 18px; }
.account-or { display: flex; align-items: center; gap: var(--sp-3); margin: var(--sp-5) 0; color: var(--muted); font-size: var(--fs-meta); }
.account-or::before, .account-or::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }

/* The Google sign-up form: the Google address in place of the email and
   password boxes, with a link to choose another Google account. */
.account-google-email {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--rule); border-radius: var(--r-md);
}
.account-google-email .google-g { margin-top: 3px; }
.account-google-email p, .account-wrap { min-width: 0; overflow-wrap: anywhere; }
