/* Manody stylesheet, part 09 — Sign-up account type, dashboard without a page, e-mail settings, login and partial navigation.
   Loaded in order by core/templates/core/includes/stylesheets.html. */

/* ---------- Sign-up: account type ---------- */
.account-type {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
}

.account-type legend { margin-bottom: 8px; }

.account-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.account-option:hover { border-color: var(--border-strong); }

.account-option:has(input:checked) {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.account-option input { margin-top: 4px; accent-color: var(--accent); }
.account-option > span { display: grid; gap: 2px; }
.account-option strong { font-size: 0.92rem; font-weight: 600; }

.input-prefixed span[hidden] { display: none; }

/* ---------- Dashboard of an account without a page ---------- */
.no-page-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.username-chip {
    display: inline-block;
    margin-top: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
    .no-page-grid { grid-template-columns: 1fr; }
}

/* ---------- E-mails to leads: settings and preview ---------- */
.narrow-wide:has(#emails) { max-width: 1120px; }

.email-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 24px;
    margin-top: 8px;
}

.email-settings { display: grid; gap: 14px; align-content: start; }
.email-settings .choice-group-title { margin: 8px 0 0; }

.email-preview { display: grid; gap: 10px; align-content: start; }

.email-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.email-preview-head .segmented-sm { margin-bottom: 0; }

.email-frame {
    width: 100%;
    height: 560px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #f4f4f5;
}

.email-settings select {
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font: inherit;
}

@media (max-width: 900px) {
    .email-grid { grid-template-columns: 1fr; }
}

/* ---------- Login: "forgot password" link ---------- */
.field-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.field-link {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
}

.field-link:hover {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- Partial dashboard navigation ---------- */
.nav-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 0;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 60%, transparent);
    opacity: 0;
    pointer-events: none;
}

.nav-progress.is-loading {
    opacity: 1;
    width: 80%;
    transition: width 2s cubic-bezier(0.1, 0.7, 0.3, 1), opacity 0.1s ease;
}

.nav-progress.is-done {
    width: 100%;
    opacity: 0;
    transition: width 0.15s ease, opacity 0.3s ease 0.15s;
}

/* Short content fade while switching menus (supported browsers). */
::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 0.18s;
}

@media (prefers-reduced-motion: reduce) {
    .nav-progress { display: none; }
}

/* ---------- Header and footer: responsive ---------- */
@media (max-width: 900px) {
    .nav-menu { display: none; }
    .show-sm { display: block; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; padding-block: 40px 28px; }
    .footer-bottom { flex-direction: column; }
    .nav-links .btn { height: 36px; padding: 0 14px; font-size: 0.85rem; }
}

/* ---------- Contact page (core/contact.html): the auth card, a little wider for the message ---------- */
.contact-card { max-width: 560px; }
.contact-card textarea { min-height: 150px; resize: vertical; }
