/* Additions of the hosted edition to the core's app.css. */
.auth-links { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; font-size: 0.92rem; color: var(--muted); }
.auth-subtitle { font-size: 1rem; margin: 28px 0 4px; }
.field-error { color: var(--danger); font-weight: 400; font-size: 0.85rem; }
.field-hint { color: var(--muted); font-weight: 400; font-size: 0.85rem; }
.auth .notice a { font-weight: 600; }

.nav-account { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.2; font-size: 0.85rem; }
.nav-organization { font-weight: 600; color: var(--text); }
.nav-user { color: var(--muted); }

/* ---- Get started ---- */
.onboarding { background: var(--surface); border: 1px solid var(--accent); border-radius: 8px; padding: 16px 20px; margin-bottom: 16px; }
.onboarding-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.onboarding-head h2 { margin: 0 0 8px; }
.onboarding-steps { list-style: none; counter-reset: step; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.onboarding-steps li { counter-increment: step; position: relative; padding-left: 40px; display: flex; flex-direction: column; gap: 4px; line-height: 1.45; }
.onboarding-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%;
    display: grid; place-items: center; font-size: 0.85rem; font-weight: 600; border: 1px solid var(--border); color: var(--muted); }
.onboarding-steps li.done::before { content: "\2713"; background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.onboarding-steps li.done strong { color: var(--muted); }
.onboarding-steps li span { color: var(--muted); }
.onboarding-action { font-weight: 600; margin: 0 12px 0 4px; }
.onboarding-form { margin: 4px 0 0; align-items: center; }

/* ---- Language of the public pages ---- */
.auth-brand { flex-wrap: wrap; }
.auth-brand .auth-lang { margin-left: auto; display: inline-flex; flex-direction: row; line-height: 1.4; padding: 3px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border);
    font-size: 0.78rem; font-weight: 700; }
.auth-lang a { padding: 4px 10px; border-radius: 999px; color: var(--muted); }
.auth-lang a:hover { text-decoration: none; color: var(--text); }
.auth-lang a.is-active { background: var(--surface); color: var(--accent); box-shadow: 0 1px 3px rgba(15, 20, 36, .12); }
.auth-links a.button-like { display: block; text-align: center; padding: 11px 14px; border-radius: 6px; background: var(--accent); color: #fff; font-weight: 600; }
.auth-links a.button-like:hover { text-decoration: none; filter: brightness(1.08); }

/* ---- Continue with Google (colors of Google's sign-in branding guidelines) ---- */
.google-button { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 20px; padding: 10px 14px;
    border-radius: 6px; border: 1px solid #747775; background: #ffffff; color: #1f1f1f; font-weight: 500; font-size: 0.95rem; }
.google-button:hover { text-decoration: none; background: #f2f2f2; }
.google-button:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 2px; }
.google-logo { flex: none; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; color: var(--muted); font-size: 0.85rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
@media (prefers-color-scheme: dark) {
    .google-button { background: #131314; border-color: #8e918f; color: #e3e3e3; }
    .google-button:hover { background: #1f1f20; }
}

/* ---- Name of the organization, after a sign-up with Google ---- */
.auth-badge { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; padding: 3px 10px; border-radius: 999px;
    background: var(--ok-bg); color: var(--ok); font-size: 0.82rem; font-weight: 600; }

/* Deleting one's account (delete-confirm.html, settings.html, account-deleted.html). */
.delete-outcome { margin: 0 0 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); }
.delete-outcome.is-deleted { border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); background: color-mix(in srgb, var(--danger) 7%, transparent); }
.delete-outcome.is-paid { border-color: color-mix(in srgb, var(--warn) 40%, var(--border)); background: var(--warn-bg); }
.delete-form { flex: 1; }
a.danger-link { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); white-space: nowrap; }
a.auth-submit { display: block; text-align: center; text-decoration: none; background: var(--accent); color: #fff; border-radius: 10px; }
