/* ===== Account settings page =====
   Loaded only on /account. Uses the new token set from style.css (--bg,
   --surface, --surface-elev, --border, --border-strong, --text,
   --text-muted, --text-dim, --accent, --danger). No backdrop-filter, no
   glow shadows; just flat surfaces and 1px borders. */

.account {
    padding: 80px 0 120px;
}

.account .container {
    max-width: 760px;
}

.account-header {
    margin-bottom: 40px;
}

.account-header h1 {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text);
    margin-bottom: 6px;
}

.account-meta {
    color: var(--text-muted);
    font-size: 14px;
}

.account-meta strong {
    color: var(--text);
    font-weight: 600;
}

.account-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 16px;
}

.account-card-head {
    margin-bottom: 22px;
}

.account-card-head h2 {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-card-head h2 i {
    color: var(--accent);
    font-size: 15px;
}

.account-card-head p {
    color: var(--text-muted);
    font-size: 13px;
}

.account-card-body .form-group {
    margin-bottom: 14px;
}

.account-card-body label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}

.account-card-body input[type="text"],
.account-card-body input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--text);
    font: inherit;
    font-size: 14px;
    transition: border-color 0.12s ease;
}

.account-card-body input[type="text"]::placeholder,
.account-card-body input[type="password"]::placeholder {
    color: var(--text-dim);
}

.account-card-body input[type="text"]:focus,
.account-card-body input[type="password"]:focus {
    outline: none;
    border-color: var(--accent);
}

.form-hint {
    display: block;
    color: var(--text-dim);
    font-size: 12px;
    margin-top: 4px;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-check input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: var(--danger);
}

.form-check label {
    margin: 0;
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
}

.form-status {
    min-height: 20px;
    font-size: 13px;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.form-status.is-error   { color: var(--danger); }
.form-status.is-success { color: var(--success); }

/* ===== Theme toggle ===== */
.theme-toggle {
    display: inline-flex;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 4px;
    gap: 4px;
}

.theme-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}

.theme-option:hover {
    color: var(--text);
}

.theme-option[aria-pressed="true"] {
    background: var(--surface-elev);
    color: var(--text);
}

.theme-option[aria-pressed="true"] i {
    color: var(--accent);
}

/* ===== Danger zone =====
   No tinted background — just a red border + a small red callout strip
   inside. Matches the rest of the page's flat language. */
.account-danger {
    background: var(--surface);
    border: 1px solid var(--danger);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 16px;
}

.account-danger .account-card-head h2,
.account-danger .account-card-head h2 i {
    color: var(--danger);
}

.danger-warning {
    background: var(--bg);
    border: 1px solid var(--border);
    border-left: 3px solid var(--danger);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 22px;
}

.danger-warning p,
.danger-warning li {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.danger-warning ul {
    padding-left: 22px;
    margin: 8px 0;
}

.danger-warning strong {
    color: var(--text);
    font-weight: 600;
}

#usernameHint {
    background: var(--surface-elev);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-family: 'JetBrains Mono', 'Consolas', 'Menlo', monospace;
    font-size: 13px;
    color: var(--text);
}

/* `.btn-danger` is already defined in style.css; we add only the override
   that lets the wider button stretch nicely in the danger form. */
.account-danger .btn-danger {
    height: 40px;
    padding: 0 18px;
    font-size: 14px;
}

@media (max-width: 600px) {
    .account-card,
    .account-danger {
        padding: 20px;
    }
    .theme-option {
        flex: 1;
        justify-content: center;
    }
}
