/* Shared by the sign-in, create-account, terms and privacy pages. Builds on famtivi.css (its .login-page / .login-card / .legal-page rules). */

[hidden] { display: none !important; }  /* classes that set `display` (grid, flex) must not defeat the hidden attribute */

/* Email, password and Sign in sit together in a thin-bordered box. */
.login-group { display: grid; gap: 16px; padding: 18px; border: 1px solid var(--line-strong); border-radius: 16px; }

/* FamTiVi shows sign-in providers as round icon-only buttons; with a single provider a labelled pill, only as wide as its content, is clearer. */
a.provider-button, button.provider-button.wide { flex: 0 0 auto; width: auto; height: 48px; min-height: 48px; padding: 0 18px; border-radius: 999px; text-decoration: none; cursor: pointer; }
button.provider-button.wide:disabled { opacity: .5; cursor: not-allowed; }
/* Sign-in page: the Sign in button and the Google button share one width (wide enough for the Google label), both centred. */
:root { --auth-btn: 17rem; }
#signin { width: min(100%, var(--auth-btn)); justify-self: center; }
a.provider-button { width: min(100%, var(--auth-btn)); }
.login-form > .provider-row { padding: 0 19px; }  /* same side space as the bordered box (1px border + 18px padding), so "100%" is the same width for both buttons on a narrow screen */
.login-form .provider-row { margin-top: 0; }

/* Footer: legal links, then the copyright line. */
.site-foot { display: grid; gap: 4px; margin-top: 18px; text-align: center; }
.site-foot p { margin: 0; }
.site-foot .login-legal { margin: 0; }
.site-foot .sep { margin: 0 6px; }

/* Small helper text, success note, divider and the bot-trap field */
.hint { color: var(--muted); font-size: .8rem; line-height: 1.45; margin: 0; }
.hint.center { text-align: center; }
.form-ok { background: var(--green-soft); border-radius: 10px; color: #116040; font-size: .86rem; padding: 10px 12px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
/* Arrived from "Sign in with Google" with no account: show only the Google route (plus a link back to the email form). */
.google-only #signup, .google-only .divider, .google-only .features-note { display: none; }
.use-email { display: none; }
.google-only .use-email { display: block; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.done-title { font-size: 1.1rem; margin: 0; }
.login-resend { background: none; border: 0; padding: 0; font: inherit; font-weight: 750; color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Create-account page */
.login-card h1.page-title { font-size: 1.5rem; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: .9rem; }
.steps b { font-weight: 750; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: 0 0 auto; }
.consent a { color: var(--brand-deep); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }

/* Terms and privacy pages */
.legal-page .login-card { max-width: 760px; }
.legal-page .legal-content { max-height: none; overflow: visible; padding: 0; }
.legal-content h1 { font-size: 1.5rem; text-align: left; margin: 0 0 4px; }
.legal-content h2 { font-size: 1rem; margin: 22px 0 6px; }
.legal-content p, .legal-content li { margin: 0 0 10px; }
.legal-content ul { padding-left: 20px; margin: 0 0 10px; }
.legal-content .updated { color: var(--muted); font-size: .82rem; margin-bottom: 14px; }
.legal-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; justify-content: center; }
.legal-brand img { width: 44px; height: 44px; }
.legal-brand .brand-name { font-size: 1.3rem; }
