/* Logged-out pages (log in, request an account, password reset, error pages): the layout only.
   Colours, fonts, buttons and fields come from theme.css, which these pages load first. */

/* Two columns: the logo, then the heading and form. They wrap into one column on narrow screens. */
.auth {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 48px 96px; padding: 48px 24px;
}
.auth-logo { flex: 1 1 320px; max-width: 460px; display: flex; justify-content: center; }
.auth-logo img { width: 100%; max-width: 420px; height: auto; display: block; }
.auth-panel { flex: 1 1 320px; max-width: 400px; display: flex; flex-direction: column; gap: 32px; }
.auth-panel h1 { margin: 0; font-size: 56px; line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; }

.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form h2 { margin: 0 0 4px; font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
.auth-form > p { font-size: 15px; }
.auth-form > .note { margin-top: -6px; }
.auth-form .btn-primary { margin-top: 8px; }
.auth .btn { display: flex; }
.quiet-link { align-self: center; font-size: 15px; padding: 10px; }

.auth-aside { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); padding-top: 24px; }
.aside-title { font-size: 17px; font-weight: 700; }
.note { font-size: 13px; color: var(--muted); }

/* Phones: one column, a small logo on top. */
@media (max-width: 720px) {
  .auth { align-content: flex-start; justify-content: flex-start; gap: 28px; padding: 28px 16px 40px; }
  .auth-logo { flex: none; justify-content: flex-start; }
  .auth-logo img { width: 112px; }
  .auth-panel { flex-basis: 100%; max-width: 440px; gap: 28px; }
  .auth-panel h1 { font-size: 40px; }
}
/* Error pages: the pig on its own instead of the text logo. */
.auth-logo .auth-pig { max-width: 260px; }
.auth-logo .lost { width: auto; height: auto; max-width: 100%; max-height: 380px; }

/* The small print under every logged-out page (a link to the Copyright page). */
.auth-foot { margin: 0; }

/* Long pages (Copyright): one column of text with the small logo on top. */
.auth-doc { display: block; max-width: 680px; margin: 0 auto; }
.auth-doc .auth-logo { justify-content: flex-start; margin-bottom: 32px; }
.auth-doc .auth-logo img { width: 112px; }
.auth-doc .auth-panel { max-width: none; gap: 28px; }
.doc-section { display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; }
.doc-section h2 { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
.doc-section p, .doc-section ol, .doc-section dl { margin: 0; }
.doc-section ol, .doc-section ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.doc-section ul { margin: 0; }
.doc-updated { margin: -16px 0 0; font-size: 14px; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc-table th, .doc-table td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc-table th { color: var(--muted); font-weight: 600; }
.agent { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; }
.agent dt { color: var(--muted); }
.agent dd { margin: 0; overflow-wrap: anywhere; }
/* 2.1: the public Premium page */
.premium-page { display: flex; flex-direction: column; gap: 24px; }
.premium-page > section { display: flex; flex-direction: column; gap: 10px; }
.premium-page h2 { margin: 0; }
.premium-page p { margin: 0; }
.premium-prices, .premium-perks ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.premium-perks li { display: flex; flex-direction: column; gap: 2px; }

.auth-lede { margin: 0 0 16px; color: var(--muted); font-size: 15px; line-height: 1.4; }

/* ---------- Pages for visitors: the painted strip, a slim bar, and the log-in pop-up ---------- */
.guest-hero { height: 80px; background: url("img/hills.69913a09a0d0.png") center bottom / cover no-repeat; }
.guest-bar { display: flex; align-items: center; gap: 18px; padding: 10px 24px; background: var(--banner); color: var(--on-banner); }
.guest-brand { display: flex; align-items: center; gap: 10px; color: var(--on-banner); font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-weight: 600; }
.guest-brand:hover { text-decoration: none; }
.guest-brand img { border-radius: 8px; }
.guest-links { display: flex; gap: 6px; margin-left: 12px; flex: 1; }
.guest-links a { padding: 7px 12px; border-radius: 6px; color: var(--on-banner); font-size: 14.5px; font-weight: 600; }
.guest-links a:hover { background: var(--hover); text-decoration: none; }
.guest-join { background: var(--cta); color: var(--on-cta); border-radius: 6px; font-weight: 600; }
.login-dialog { width: min(480px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 8px; background: var(--ink); color: var(--text); overflow: hidden; }
.login-dialog::backdrop { background: var(--dim); }
.login-close { position: absolute; top: 10px; right: 10px; display: inline-flex; padding: 6px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.login-close:hover { background: var(--hover); color: var(--text); }
.login-body { padding: 24px 24px 20px; }
.login-body h2 { margin: 0 0 16px; font-size: 28px; font-weight: 600; }
.login-form { display: flex; flex-direction: column; gap: 12px; }
.login-form input { width: 100%; box-sizing: border-box; height: 48px; padding: 0 14px; border: 0; border-radius: 4px; background: var(--field); color: var(--text); font: inherit; font-size: 16px; }
.login-pass { position: relative; }
.login-pass input { padding-right: 70px; }
.login-show { position: absolute; top: 0; right: 0; height: 48px; padding: 0 14px; border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.login-forgot { font-size: 15px; }
.login-submit { height: 48px; border-radius: 4px; background: var(--cta); color: var(--on-cta); font-size: 16px; font-weight: 600; }
.login-join { display: block; padding: 22px 24px; text-align: center; background: var(--cta); color: var(--on-cta); font-size: 16px; }
.login-join:hover { filter: brightness(1.1); text-decoration: none; }
.login-join strong { font-weight: 700; }
@media (max-width: 699px) { .guest-hero { height: 40px; } .guest-links { display: none; } .guest-bar { padding: 8px 14px; } .guest-join { margin-left: auto; } }

/* ---------- The application: grouped steps, tick lists and the agreements ---------- */
.application { max-width: 640px; }
.app-step { margin: 28px 0 4px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 17px; font-weight: 600; }
.app-step:first-of-type { border-top: 0; margin-top: 12px; padding-top: 0; }
.choices { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; }
.choices legend { padding: 0; margin-bottom: 4px; font-weight: 600; }
.choices .help { display: block; margin-bottom: 6px; }
.choice-list { display: flex; flex-direction: column; gap: 6px; }
.choice { display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px; border-radius: 6px; background: var(--field); cursor: pointer; font-weight: 400; }
.choice:hover { background: var(--hover); }
.choice input { margin-top: 3px; flex: none; }
.agree { margin-top: 10px; }
.agree-line { background: transparent; border: 1px solid var(--line); line-height: 1.45; }
.application .choice input { width: 18px; height: 18px; min-width: 18px; padding: 0; margin: 2px 0 0; flex: none; accent-color: var(--cta); }
.application .choice span { flex: 1; min-width: 0; line-height: 1.4; }

/* Sign-up: the piggy, then who we are and what we do, then the form */
.auth-about .auth-logo { display: flex; align-items: center; justify-content: center; }
.auth-about .auth-panel { max-width: 640px; }
.intro { margin: 8px 0 28px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--well); }
.intro h2 { margin: 18px 0 6px; font-size: 18px; }
.intro h2:first-child { margin-top: 0; }
.intro p, .intro li { line-height: 1.55; }
.intro-list, .intro-steps { margin: 6px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.intro-steps { counter-reset: step; list-style: none; padding-left: 0; }
.intro-steps li { position: relative; padding-left: 36px; }
.intro-steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent-tint); color: var(--accent); font-weight: 700; font-size: 14px; }
.auth-about .auth-logo { flex-direction: column; gap: 8px; }
.auth-about { align-items: flex-start; }
.auth-about .auth-logo { align-self: flex-start; position: sticky; top: 24px; }
@media (max-width: 760px) { .auth-about .auth-logo { position: static; } }
[data-page="blossom"] body { background: var(--page); }
[data-page="blossom"] .intro { background: var(--ink); border-color: var(--line); }
[data-page="blossom"] .auth-form { background: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
[data-page="blossom"] .auth-panel h1 { color: var(--accent); }
.auth-logo { display: flex; align-items: center; justify-content: center; }
.auth-logo .friend { width: auto; height: auto; max-width: 100%; max-height: 470px; }

@media (max-width: 760px) { .auth-logo .friend { max-height: 200px; } }
[data-page="blossom"] .guest-hero { background-image: url("img/hills-pink.063142d53a09.png"); }
