:root {
    --auth-bg: #f4f6fb;
    --auth-card-bg: #ffffff;
    --auth-text: #1f2937;
    --auth-muted: #6b7280;
    --auth-accent: #4f46e5;
}

.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--auth-bg);
    color: var(--auth-text);
}

.auth-shell {
    width: 100%;
    max-width: 420px;
}

.auth-brand {
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--auth-accent);
}

.auth-card {
    padding: 2rem;
    border-radius: 12px;
    background: var(--auth-card-bg);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.auth-title {
    margin-bottom: 0.25rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.auth-subtitle {
    margin-bottom: 1.5rem;
    color: var(--auth-muted);
}

.auth-footer {
    margin: 1.25rem 0 0;
    text-align: center;
    color: var(--auth-muted);
}

.auth-card a {
    color: var(--auth-accent);
}

.auth-card a.btn,
.auth-card .btn-primary {
    --bs-btn-color: #ffffff;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-active-color: #ffffff;
    --bs-btn-bg: var(--auth-accent);
    --bs-btn-border-color: var(--auth-accent);
    --bs-btn-hover-bg: #4338ca;
    --bs-btn-hover-border-color: #4338ca;
    --bs-btn-active-bg: #3730a3;
    --bs-btn-active-border-color: #3730a3;
    color: #ffffff;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem 1.25rem;
    }
}


/* ---- Settings page and shared note variables ---- */
.settings-page {
    max-width: 760px;
}

.avatar-img,
.avatar-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    font-weight: 700;
    color: #ffffff;
    background: var(--auth-accent, #4f46e5);
}

.note-preview {
    padding: 1rem;
    border: 1px solid rgba(128, 128, 128, 0.35);
    border-radius: 8px;
    background: var(--nm-note-bg, #ffffff);
    color: var(--nm-note-text, #212529);
    font-size: var(--nm-note-font-size, 16px);
}