Files
face-attendance/app/static/css/app.css

439 lines
6.7 KiB
CSS

:root {
--surface: #ffffff;
--surface-muted: #f6f7f9;
--border: #d8dee6;
--text: #172033;
--muted: #657084;
--accent: #0f6b5f;
--accent-strong: #0b5a50;
--info: #275f9f;
--warning: #a35f00;
}
body {
min-height: 100vh;
background: var(--surface-muted);
color: var(--text);
}
a {
color: var(--info);
}
.btn-primary {
--bs-btn-bg: var(--accent);
--bs-btn-border-color: var(--accent);
--bs-btn-hover-bg: var(--accent-strong);
--bs-btn-hover-border-color: var(--accent-strong);
}
.page-shell {
padding: 2rem 0 3rem;
}
.flash-stack {
margin-bottom: 1.25rem;
}
.page-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
margin-bottom: 1.5rem;
}
.page-header h1 {
margin: 0;
font-size: clamp(1.75rem, 2vw, 2.35rem);
}
.eyebrow {
margin: 0 0 0.35rem;
color: var(--muted);
font-size: 0.78rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.auth-layout {
min-height: calc(100vh - 4rem);
display: grid;
place-items: center;
}
.auth-panel,
.form-section,
.content-section,
.camera-panel {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 8px;
box-shadow: 0 16px 40px rgba(23, 32, 51, 0.06);
}
.auth-panel {
width: min(100%, 440px);
padding: 2rem;
}
.form-section,
.content-section,
.camera-panel {
padding: 1.25rem;
}
.section-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
margin-bottom: 1rem;
}
.section-header h2,
.content-section h2 {
font-size: 1.15rem;
margin: 0 0 1rem;
}
.section-header h2 {
margin: 0;
}
.stats-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 1rem;
margin-bottom: 1.5rem;
}
.stat-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 8px;
padding: 1.1rem;
}
.stat-card span {
display: block;
color: var(--muted);
font-size: 0.9rem;
}
.stat-card strong {
display: block;
margin-top: 0.35rem;
font-size: 2rem;
line-height: 1;
}
.empty-state {
border: 1px dashed var(--border);
border-radius: 8px;
color: var(--muted);
padding: 1.25rem;
text-align: center;
}
.form-actions {
display: flex;
justify-content: flex-end;
margin-top: 1rem;
}
.form-help {
color: var(--muted);
font-size: 0.9rem;
margin: 0.85rem 0 0;
}
.upload-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 1rem;
margin-top: 0.5rem;
}
.detail-grid,
.kiosk-grid {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(360px, 0.7fr);
gap: 1.25rem;
}
.detail-list {
display: grid;
grid-template-columns: 140px 1fr;
gap: 0.65rem 1rem;
margin: 0;
}
.detail-list dt {
color: var(--muted);
font-weight: 600;
}
.detail-list dd {
margin: 0;
}
.event-list,
.result-list {
display: grid;
gap: 0.75rem;
}
.event-row,
.result-card {
border: 1px solid var(--border);
border-radius: 8px;
padding: 0.85rem;
}
.event-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
}
.camera-frame {
position: relative;
overflow: hidden;
aspect-ratio: 16 / 10;
background: #111827;
border-radius: 8px;
}
.camera-frame video,
.camera-frame img,
.camera-frame canvas {
width: 100%;
height: 100%;
object-fit: cover;
}
.camera-frame img,
.camera-frame canvas {
display: none;
}
.camera-frame.has-preview video {
display: none;
}
.camera-frame.has-preview img {
display: block;
}
.camera-actions {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
margin: 1rem 0;
}
.result-card h3 {
font-size: 1rem;
margin: 0 0 0.35rem;
}
.result-card p {
color: var(--muted);
margin-bottom: 0.75rem;
}
.result-actions {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.error-page {
max-width: 620px;
margin: 10vh auto;
text-align: center;
}
.welcome-page {
margin: -2rem -1.5rem -3rem;
background: #f3f6f7;
}
.welcome-hero {
min-height: 78vh;
position: relative;
display: flex;
align-items: center;
isolation: isolate;
overflow: hidden;
padding: 7rem clamp(1.5rem, 6vw, 7rem) 5rem;
background: url("../img/welcome-hero.png") center / cover no-repeat;
color: #ffffff;
}
.welcome-hero::before {
content: "";
position: absolute;
inset: 0;
z-index: -1;
background: rgba(6, 15, 28, 0.58);
}
.welcome-nav {
position: absolute;
top: 1.5rem;
left: clamp(1.5rem, 6vw, 7rem);
right: clamp(1.5rem, 6vw, 7rem);
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
}
.welcome-brand {
color: #ffffff;
font-size: 1.05rem;
font-weight: 700;
text-decoration: none;
}
.welcome-copy {
max-width: 760px;
}
.welcome-copy h1 {
margin: 0;
font-size: clamp(3rem, 7vw, 7rem);
font-weight: 800;
line-height: 0.95;
}
.welcome-copy p {
max-width: 660px;
margin: 1.4rem 0 0;
color: rgba(255, 255, 255, 0.86);
font-size: clamp(1.05rem, 1.5vw, 1.35rem);
}
.welcome-eyebrow {
color: rgba(255, 255, 255, 0.72);
}
.welcome-actions {
display: flex;
flex-wrap: wrap;
gap: 0.85rem;
margin-top: 2rem;
}
.welcome-section,
.workflow-band {
padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 6vw, 7rem);
}
.welcome-section-header {
max-width: 760px;
margin-bottom: 1.5rem;
}
.welcome-section-header h2,
.workflow-band h2 {
margin: 0;
font-size: clamp(2rem, 3vw, 3rem);
}
.feature-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 1rem;
}
.feature-card {
min-height: 250px;
padding: 1.25rem;
border: 1px solid var(--border);
border-radius: 8px;
background: #ffffff;
}
.feature-card span {
color: var(--accent);
font-weight: 800;
}
.feature-card h3 {
margin: 2.5rem 0 0.75rem;
font-size: 1.15rem;
}
.feature-card p {
color: var(--muted);
margin: 0;
}
.workflow-band {
display: grid;
grid-template-columns: minmax(0, 0.75fr) minmax(320px, 1fr);
gap: 2rem;
align-items: start;
background: #172033;
color: #ffffff;
}
.workflow-band .eyebrow,
.workflow-list {
color: rgba(255, 255, 255, 0.72);
}
.workflow-list {
display: grid;
gap: 1rem;
margin: 0;
padding-left: 1.25rem;
font-size: 1.05rem;
}
@media (max-width: 992px) {
.stats-grid,
.upload-grid,
.detail-grid,
.kiosk-grid,
.feature-grid,
.workflow-band {
grid-template-columns: 1fr 1fr;
}
}
@media (max-width: 720px) {
.page-header,
.section-header {
align-items: flex-start;
flex-direction: column;
}
.stats-grid,
.upload-grid,
.detail-grid,
.kiosk-grid,
.feature-grid,
.workflow-band {
grid-template-columns: 1fr;
}
.detail-list {
grid-template-columns: 1fr;
}
.welcome-hero {
min-height: 82vh;
padding-top: 6rem;
}
.welcome-actions .btn {
width: 100%;
}
}