/* Palette mirrors the cabinet theme (app-saas.css, [data-bs-theme=dark|light]) */
:root,
[data-bs-theme=dark] {
    --err-body-bg: #1e293b;
    --err-heading: #e2e8f0;
    --err-text: #c8d3de;
    --err-muted: #94a3b8;
    --err-link: #6ce2c1;
    --err-link-hover: #8eebd2;
    --err-logo-filter: none;
}

[data-bs-theme=light] {
    --err-body-bg: #fafbfe;
    --err-heading: #313a46;
    --err-text: #6c757d;
    --err-muted: #8a969c;
    --err-link: #0acf97;
    --err-link-hover: #08b383;
    --err-logo-filter: invert(1);
}

/* Base styles */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--err-body-bg);
    color: var(--err-text);
}

/* Layout containers */
.fluid {
    min-height: 100vh;
    max-width: 100%;
    padding: 3rem 1rem;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fluid-form-box {
    width: 100%;
    max-width: 440px;
    box-sizing: border-box;
    padding: 2.5rem 2rem;
}

/* Logo styles */
.brand {
    margin-bottom: 1rem;
    text-align: center;
}

.brand img {
    height: 40px;
    width: auto;
    filter: var(--err-logo-filter);
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Typography */
h2,
h4 {
    color: var(--err-heading);
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

h2 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    color: var(--err-muted);
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

.text-muted {
    color: var(--err-muted);
}

/* Links */
a {
    color: var(--err-link);
    text-decoration: none;
}

a:hover {
    color: var(--err-link-hover);
    text-decoration: none;
}

/* Matches cabinet .btn-primary */
.btn-primary {
    display: inline-block;
    margin: 0.5rem auto;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    background-color: #2fe784;
    color: #121212;
    font-weight: 600;
}

.btn-primary:hover {
    color: #121212;
    opacity: 0.9;
}

/* Utility classes */
.pb-0 {
    padding-bottom: 0;
}

.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.gap-3 {
    gap: 1rem;
}

.d-grid {
    display: grid;
}

.text-center {
    text-align: center;
    margin: 0 auto;
}
