:root {
    --brand-green: #16a34a;
    --brand-green-dark: #0f7c39;
    --ink: #0f172a;
    --muted: #475569;
    --card: rgba(255, 255, 255, 0.92);
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; font-family: 'Inter', system-ui, -apple-system, sans-serif; color: var(--ink); }
body {
    background:
        radial-gradient(ellipse at top left, rgba(22, 163, 74, 0.18), transparent 60%),
        radial-gradient(ellipse at bottom right, rgba(15, 23, 42, 0.12), transparent 55%),
        linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}
.account-card {
    width: 100%;
    max-width: 460px;
    background: var(--card);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    padding: 2.5rem 2.25rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 20px 40px -12px rgba(15, 23, 42, 0.18);
}
.account-card h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 0.75rem; }
.account-card p.lede { color: var(--muted); font-size: 0.98rem; line-height: 1.55; margin: 0 0 1.75rem; }
.account-card form { display: flex; flex-direction: column; gap: 0.75rem; }
.account-card label { font-size: 0.8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.account-card input[type="email"],
.account-card input[type="text"] {
    font-size: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    border: 1.5px solid rgba(15, 23, 42, 0.12);
    background: white;
    color: var(--ink);
    transition: border-color 120ms ease, box-shadow 120ms ease;
}
.account-card input[type="email"]:focus,
.account-card input[type="text"]:focus { outline: none; border-color: var(--brand-green); box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.15); }
.account-card button {
    font-weight: 600;
    font-size: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: none;
    background: var(--brand-green);
    color: white;
    cursor: pointer;
    transition: background 120ms ease;
    margin-top: 0.25rem;
}
.account-card button:hover { background: var(--brand-green-dark); }
.account-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: 0.9rem;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}
.account-footer { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(15, 23, 42, 0.08); color: var(--muted); font-size: 0.85rem; text-align: center; }
.account-footer a { color: var(--brand-green); text-decoration: none; font-weight: 500; }
.account-footer a:hover { text-decoration: underline; }

/* Brand header — shared by landing and all /Account/* pages */
.account-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.account-brand img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}
.account-brand-name {
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    color: var(--ink);
}
.account-brand-sub {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Divider between primary action and alternative */
.account-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0 1rem;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.account-divider::before,
.account-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(15, 23, 42, 0.1);
}
.account-link-alt {
    display: block;
    text-align: center;
    color: var(--brand-green);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    border: 1.5px solid rgba(22, 163, 74, 0.3);
    transition: background 120ms ease, border-color 120ms ease;
}
.account-link-alt:hover {
    background: rgba(22, 163, 74, 0.06);
    border-color: var(--brand-green);
}
