Files
Heimdall/src/Heimdall.Web/wwwroot/app.css
T

300 lines
6.7 KiB
CSS
Raw Normal View History

/* ─── Heimdall — Global Styles ────────────────────────────────── */
html, body {
font-family: 'Inter', 'Roboto', 'Helvetica', 'Arial', sans-serif;
height: 100%;
margin: 0;
background-color: #f5f5f5;
color-scheme: light dark;
}
/* ─── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: #c4c4c4;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #a6a6a6;
}
* {
scrollbar-color: #c4c4c4 transparent;
scrollbar-width: thin;
}
/* ─── MudBlazor overrides ─────────────────────────────────────── */
.mud-dialog {
border-radius: 12px !important;
}
.mud-table {
border-radius: 12px !important;
}
/* Code blocks in tokens */
code {
font-family: 'Fira Code', 'Cascadia Code', monospace;
font-size: 0.9em;
}
/* ─── Validation ───────────────────────────────────────────────── */
.valid.modified:not([type=checkbox]) {
outline: 1px solid #26b050;
}
.invalid {
outline: 1px solid #e50000;
}
.validation-message {
color: #e50000;
}
/* ─── Blazor error UI ─────────────────────────────────────────── */
#blazor-error-ui {
color-scheme: light only;
background: lightyellow;
bottom: 0;
box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
box-sizing: border-box;
display: none;
left: 0;
padding: 0.6rem 1.25rem 0.7rem 1.25rem;
position: fixed;
width: 100%;
z-index: 1000;
}
#blazor-error-ui .dismiss {
cursor: pointer;
position: absolute;
right: 0.75rem;
top: 0.5rem;
}
/* ─── User management ──────────────────────────────────────────── */
.user-section-card {
background: var(--mud-palette-surface);
border: 1px solid var(--mud-palette-lines-inputs);
border-radius: 8px;
}
/* ─── Settings page ────────────────────────────────────────────── */
.settings-type-chip {
padding: 2px 8px !important;
border-radius: 12px !important;
display: inline-block !important;
color: #fff !important;
}
/* ─── Auth pages (Login / Register) ─────────────────────────────── */
.auth-page {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
padding: 1.5rem;
background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
position: relative;
overflow: hidden;
}
/* Decorative background circles */
.auth-page::before {
content: '';
position: absolute;
top: -25%;
right: -15%;
width: 500px;
height: 500px;
border-radius: 50%;
background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
pointer-events: none;
}
.auth-page::after {
content: '';
position: absolute;
bottom: -20%;
left: -10%;
width: 400px;
height: 400px;
border-radius: 50%;
background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
pointer-events: none;
}
.auth-card {
width: 100%;
max-width: 420px;
background: rgba(255, 255, 255, 0.98);
border-radius: 20px;
padding: 2.5rem 2rem;
box-shadow:
0 25px 50px -12px rgba(0, 0, 0, 0.25),
0 0 0 1px rgba(255, 255, 255, 0.05);
position: relative;
z-index: 1;
animation: auth-card-enter 0.4s ease-out;
}
@keyframes auth-card-enter {
from {
opacity: 0;
transform: translateY(16px) scale(0.98);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
.auth-header {
text-align: center;
margin-bottom: 2rem;
}
.auth-header .auth-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 56px;
height: 56px;
border-radius: 16px;
background: linear-gradient(135deg, #6366f1, #8b5cf6);
color: #fff;
margin-bottom: 1rem;
box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}
.auth-header h1 {
font-size: 1.5rem;
font-weight: 700;
color: #1e293b;
margin: 0 0 0.25rem;
letter-spacing: -0.02em;
}
.auth-header p {
font-size: 0.875rem;
color: #475569;
margin: 0;
}
.auth-form {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.auth-form .mud-input-outlined {
background: #f8fafc;
}
.auth-form .mud-button-submit {
height: 48px;
font-size: 0.95rem;
font-weight: 600;
border-radius: 12px;
text-transform: none;
letter-spacing: 0.01em;
margin-top: 0.25rem;
}
.auth-error {
margin-bottom: 0.5rem;
}
.auth-footer {
text-align: center;
margin-top: 1.5rem;
padding-top: 1.25rem;
border-top: 1px solid #e2e8f0;
}
.auth-footer p {
font-size: 0.875rem;
color: #475569;
margin: 0;
}
.auth-footer a {
color: #6366f1;
font-weight: 600;
text-decoration: none;
transition: color 0.2s;
}
.auth-footer a:hover {
color: #4f46e5;
text-decoration: underline;
}
/* ─── Dark mode for auth pages ──────────────────────────────────── */
@media (prefers-color-scheme: dark) {
.auth-card {
background: rgba(30, 41, 59, 0.98);
box-shadow:
0 25px 50px -12px rgba(0, 0, 0, 0.5),
0 0 0 1px rgba(255, 255, 255, 0.05);
}
.auth-header h1 {
color: #f1f5f9;
}
.auth-header p {
color: #cbd5e1;
}
.auth-form .mud-input-outlined {
background: #1e293b;
}
.auth-footer {
border-top-color: #334155;
}
.auth-footer p {
color: #cbd5e1;
}
.auth-footer a {
color: #818cf8;
}
.auth-footer a:hover {
color: #a5b4fc;
}
}
/* ─── Dark mode (general) ──────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
html, body {
background-color: #0f172a;
}
#blazor-error-ui {
background: #3a2a00;
color: #ffd966;
}
}