Files
webMontime/src/styles/main.css
T

169 lines
2.7 KiB
CSS

:root {
--bg: #0f1419;
--surface: #1a2332;
--surface-2: #243044;
--text: #f0f4f8;
--muted: #94a3b8;
--accent: #22c55e;
--accent-hover: #16a34a;
--danger: #f87171;
--border: rgba(148, 163, 184, 0.2);
--radius: 12px;
--shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}
*,
*::before,
*::after {
box-sizing: border-box;
}
html,
body,
#app {
margin: 0;
min-height: 100%;
}
body {
font-family: 'Vazirmatn', system-ui, sans-serif;
background: radial-gradient(ellipse at top, #1e3a2f 0%, var(--bg) 55%);
color: var(--text);
line-height: 1.6;
}
.app-shell {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 1.5rem;
}
.card {
width: 100%;
max-width: 420px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 2rem;
box-shadow: var(--shadow);
}
.logo {
font-size: 1.75rem;
font-weight: 700;
margin: 0 0 0.25rem;
letter-spacing: -0.02em;
}
.subtitle {
color: var(--muted);
margin: 0 0 1.75rem;
font-size: 0.95rem;
}
.field {
margin-bottom: 1rem;
}
.field label {
display: block;
font-size: 0.875rem;
font-weight: 500;
margin-bottom: 0.4rem;
color: var(--muted);
}
.field input {
width: 100%;
padding: 0.75rem 1rem;
border-radius: 8px;
border: 1px solid var(--border);
background: var(--surface-2);
color: var(--text);
font: inherit;
direction: ltr;
text-align: left;
}
.field input:focus {
outline: 2px solid var(--accent);
outline-offset: 1px;
}
.btn {
width: 100%;
padding: 0.85rem 1rem;
border: none;
border-radius: 8px;
font: inherit;
font-weight: 600;
cursor: pointer;
transition: background 0.15s, opacity 0.15s;
}
.btn-primary {
background: var(--accent);
color: #052e16;
}
.btn-primary:hover:not(:disabled) {
background: var(--accent-hover);
}
.btn:disabled {
opacity: 0.55;
cursor: not-allowed;
}
.btn-ghost {
background: transparent;
color: var(--muted);
margin-top: 0.75rem;
}
.error {
background: rgba(248, 113, 113, 0.12);
border: 1px solid rgba(248, 113, 113, 0.35);
color: var(--danger);
padding: 0.75rem 1rem;
border-radius: 8px;
font-size: 0.875rem;
margin-bottom: 1rem;
}
.timer {
text-align: center;
color: var(--muted);
font-size: 0.875rem;
margin-top: 1rem;
}
.home-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
}
.user-card {
background: var(--surface-2);
border-radius: 8px;
padding: 1rem;
}
.user-card dt {
color: var(--muted);
font-size: 0.8rem;
}
.user-card dd {
margin: 0.25rem 0 0.75rem;
font-weight: 500;
}
.user-card dd:last-child {
margin-bottom: 0;
}