Refactor frontend to route-based navigation with vue-router, add system setup and login pages with API integration. Add structured logging, access-log middleware and startup lifecycle to FastAPI backend.
608 lines
12 KiB
CSS
608 lines
12 KiB
CSS
.setup-page {
|
|
min-height: 100dvh;
|
|
display: grid;
|
|
grid-template-columns: minmax(320px, 392px) minmax(0, 1fr);
|
|
background:
|
|
radial-gradient(circle at top left, rgba(16, 185, 129, 0.24), transparent 24rem),
|
|
radial-gradient(circle at 36% 14%, rgba(16, 185, 129, 0.16), transparent 18rem),
|
|
linear-gradient(135deg, #04110d 0%, #0b1f18 26%, #10281f 26%, #eef5f1 26%, #f6fbf8 100%);
|
|
}
|
|
|
|
.setup-context {
|
|
padding: 42px 28px 32px;
|
|
color: rgba(255, 255, 255, 0.92);
|
|
display: grid;
|
|
align-content: start;
|
|
gap: 22px;
|
|
border-right: 1px solid rgba(110, 231, 183, 0.08);
|
|
background: linear-gradient(180deg, rgba(4, 17, 13, 0.92), rgba(16, 40, 31, 0.9));
|
|
}
|
|
|
|
.setup-brand {
|
|
display: flex;
|
|
gap: 18px;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.setup-brand-mark {
|
|
position: relative;
|
|
flex: 0 0 64px;
|
|
width: 64px;
|
|
height: 64px;
|
|
display: grid;
|
|
place-items: center;
|
|
}
|
|
|
|
.setup-brand-ring {
|
|
position: absolute;
|
|
inset: 0;
|
|
border-radius: 18px;
|
|
background:
|
|
linear-gradient(145deg, rgba(209, 250, 229, 0.96), rgba(52, 211, 153, 0.88)),
|
|
linear-gradient(145deg, rgba(16, 185, 129, 0.4), rgba(5, 150, 105, 0.6));
|
|
box-shadow:
|
|
0 18px 36px rgba(16, 185, 129, 0.2),
|
|
inset 0 1px 0 rgba(255, 255, 255, 0.46);
|
|
transform: rotate(-8deg);
|
|
}
|
|
|
|
.setup-brand-ring::before {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 7px;
|
|
border-radius: 14px;
|
|
border: 1px solid rgba(4, 120, 87, 0.22);
|
|
}
|
|
|
|
.setup-brand-core {
|
|
position: relative;
|
|
z-index: 1;
|
|
width: 42px;
|
|
height: 42px;
|
|
border-radius: 12px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: rgba(3, 32, 24, 0.92);
|
|
color: #d1fae5;
|
|
font-size: 15px;
|
|
font-weight: 800;
|
|
letter-spacing: 0.14em;
|
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
|
|
}
|
|
|
|
.setup-kicker {
|
|
margin-bottom: 8px;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.12em;
|
|
text-transform: uppercase;
|
|
color: rgba(167, 243, 208, 0.86);
|
|
}
|
|
|
|
.setup-kicker-light {
|
|
color: rgba(209, 250, 229, 0.82);
|
|
}
|
|
|
|
.setup-context h1 {
|
|
color: #f4fff8;
|
|
font-size: clamp(1.9rem, 2.4vw, 2.5rem);
|
|
line-height: 1.08;
|
|
text-shadow: 0 12px 36px rgba(2, 12, 8, 0.34);
|
|
}
|
|
|
|
.setup-lead {
|
|
color: rgba(220, 252, 231, 0.84);
|
|
font-size: 14px;
|
|
line-height: 1.8;
|
|
}
|
|
|
|
.setup-nav {
|
|
display: grid;
|
|
gap: 10px;
|
|
}
|
|
|
|
.setup-nav-item {
|
|
width: 100%;
|
|
padding: 14px 14px 14px 12px;
|
|
border: 1px solid rgba(110, 231, 183, 0.12);
|
|
border-radius: 8px;
|
|
display: grid;
|
|
grid-template-columns: 44px minmax(0, 1fr) 18px;
|
|
align-items: center;
|
|
gap: 12px;
|
|
background: linear-gradient(160deg, rgba(10, 23, 18, 0.82), rgba(15, 39, 31, 0.72));
|
|
color: inherit;
|
|
text-align: left;
|
|
transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
|
|
}
|
|
|
|
.setup-nav-item:hover {
|
|
transform: translateY(-1px);
|
|
border-color: rgba(110, 231, 183, 0.22);
|
|
}
|
|
|
|
.setup-nav-item.is-active {
|
|
border-color: rgba(16, 185, 129, 0.4);
|
|
box-shadow: 0 14px 28px rgba(3, 10, 7, 0.22);
|
|
}
|
|
|
|
.setup-nav-item.is-complete {
|
|
background: linear-gradient(160deg, rgba(8, 31, 23, 0.96), rgba(12, 58, 44, 0.86));
|
|
}
|
|
|
|
.setup-nav-index {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 8px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: rgba(16, 185, 129, 0.16);
|
|
color: #d1fae5;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.08em;
|
|
}
|
|
|
|
.setup-nav-copy {
|
|
display: grid;
|
|
gap: 4px;
|
|
}
|
|
|
|
.setup-nav-copy strong {
|
|
color: #f0fdf4;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.setup-nav-copy small {
|
|
color: rgba(209, 250, 229, 0.72);
|
|
font-size: 12px;
|
|
line-height: 1.55;
|
|
}
|
|
|
|
.setup-nav-check {
|
|
color: #6ee7b7;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.setup-progress {
|
|
margin-top: 8px;
|
|
padding: 16px 18px;
|
|
border: 1px solid rgba(110, 231, 183, 0.14);
|
|
border-radius: 8px;
|
|
background: rgba(7, 33, 25, 0.76);
|
|
}
|
|
|
|
.setup-progress strong {
|
|
color: #f0fdf4;
|
|
font-size: 15px;
|
|
}
|
|
|
|
.setup-progress p {
|
|
margin-top: 8px;
|
|
color: rgba(209, 250, 229, 0.72);
|
|
font-size: 13px;
|
|
line-height: 1.65;
|
|
}
|
|
|
|
.setup-complete {
|
|
margin-top: auto;
|
|
padding: 16px 18px 0;
|
|
border-top: 1px solid rgba(110, 231, 183, 0.12);
|
|
display: grid;
|
|
gap: 12px;
|
|
}
|
|
|
|
.setup-complete p {
|
|
color: rgba(209, 250, 229, 0.76);
|
|
font-size: 13px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.setup-complete-btn {
|
|
width: 100%;
|
|
}
|
|
|
|
.setup-panel {
|
|
padding: 36px;
|
|
display: grid;
|
|
align-content: start;
|
|
gap: 24px;
|
|
background:
|
|
radial-gradient(circle at top left, rgba(16, 185, 129, 0.08), transparent 16rem),
|
|
linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
|
|
}
|
|
|
|
.setup-panel-head {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
gap: 16px;
|
|
padding: 20px 22px;
|
|
border: 1px solid rgba(16, 185, 129, 0.14);
|
|
border-radius: 8px;
|
|
background: linear-gradient(135deg, #063b2e, #0f5f49);
|
|
box-shadow: 0 16px 34px rgba(6, 59, 46, 0.16);
|
|
}
|
|
|
|
.setup-panel-head h2 {
|
|
color: #ffffff;
|
|
font-size: 28px;
|
|
}
|
|
|
|
.setup-panel-desc {
|
|
margin-top: 10px;
|
|
color: rgba(236, 253, 245, 0.82);
|
|
font-size: 14px;
|
|
line-height: 1.65;
|
|
}
|
|
|
|
.setup-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
min-height: 32px;
|
|
padding: 0 12px;
|
|
border-radius: 999px;
|
|
background: rgba(240, 253, 244, 0.14);
|
|
color: #d1fae5;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
border: 1px solid rgba(209, 250, 229, 0.18);
|
|
}
|
|
|
|
.setup-chip.is-success {
|
|
background: rgba(16, 185, 129, 0.22);
|
|
}
|
|
|
|
.setup-form {
|
|
padding: 30px 32px;
|
|
border: 1px solid rgba(16, 185, 129, 0.18);
|
|
border-radius: 8px;
|
|
background: linear-gradient(180deg, rgba(244, 255, 248, 0.98), rgba(255, 255, 255, 0.94));
|
|
box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12), 0 1px 0 rgba(255, 255, 255, 0.6) inset;
|
|
backdrop-filter: blur(14px);
|
|
}
|
|
|
|
.setup-stage {
|
|
display: grid;
|
|
gap: 22px;
|
|
}
|
|
|
|
.section-head {
|
|
display: grid;
|
|
gap: 6px;
|
|
}
|
|
|
|
.section-head h3 {
|
|
color: #065f46;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.section-head p {
|
|
color: #5b6f67;
|
|
font-size: 13px;
|
|
line-height: 1.7;
|
|
}
|
|
|
|
.field-grid {
|
|
display: grid;
|
|
gap: 16px;
|
|
}
|
|
|
|
.field-grid-2 {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
|
|
.field {
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
|
|
.field span {
|
|
color: #244239;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.field-note {
|
|
color: #5f7c72;
|
|
font-size: 12px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.field-group-note {
|
|
margin-top: -6px;
|
|
color: #5f7c72;
|
|
font-size: 12px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.optional-block {
|
|
padding: 18px 18px 0;
|
|
border: 1px dashed rgba(16, 185, 129, 0.22);
|
|
border-radius: 8px;
|
|
background: rgba(240, 253, 244, 0.52);
|
|
}
|
|
|
|
.optional-block-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.optional-block-head strong {
|
|
color: #065f46;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.optional-block-head span {
|
|
min-height: 24px;
|
|
padding: 0 10px;
|
|
border-radius: 999px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
background: rgba(16, 185, 129, 0.12);
|
|
color: #047857;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.field input {
|
|
width: 100%;
|
|
min-height: 46px;
|
|
padding: 0 14px;
|
|
border: 1px solid rgba(148, 163, 184, 0.78);
|
|
border-radius: 8px;
|
|
background: rgba(255, 255, 255, 0.92);
|
|
color: #0f172a;
|
|
transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
|
|
}
|
|
|
|
.field input:hover {
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.field input:focus {
|
|
border-color: #10b981;
|
|
box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
|
|
}
|
|
|
|
.field-span-2 {
|
|
grid-column: span 2;
|
|
}
|
|
|
|
.setup-runtime {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 12px;
|
|
}
|
|
|
|
.setup-runtime article {
|
|
position: relative;
|
|
overflow: hidden;
|
|
padding: 16px 18px;
|
|
border-radius: 8px;
|
|
border: 1px solid rgba(110, 231, 183, 0.14);
|
|
display: grid;
|
|
gap: 10px;
|
|
box-shadow: 0 14px 32px rgba(3, 10, 7, 0.2);
|
|
}
|
|
|
|
.setup-runtime article::before {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 0 auto auto 0;
|
|
width: 100%;
|
|
height: 3px;
|
|
background: linear-gradient(90deg, rgba(209, 250, 229, 0.92), rgba(16, 185, 129, 0.48));
|
|
}
|
|
|
|
.setup-runtime article:nth-child(1) {
|
|
background: linear-gradient(150deg, rgba(7, 33, 25, 0.96), rgba(16, 67, 52, 0.9));
|
|
}
|
|
|
|
.setup-runtime article:nth-child(2) {
|
|
background: linear-gradient(150deg, rgba(7, 28, 26, 0.96), rgba(11, 59, 61, 0.9));
|
|
}
|
|
|
|
.setup-runtime article:nth-child(3) {
|
|
background: linear-gradient(150deg, rgba(16, 28, 19, 0.96), rgba(48, 74, 36, 0.9));
|
|
}
|
|
|
|
.setup-runtime span {
|
|
font-size: 12px;
|
|
text-transform: uppercase;
|
|
color: rgba(167, 243, 208, 0.7);
|
|
}
|
|
|
|
.setup-runtime strong {
|
|
color: #f8fffb;
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
word-break: break-word;
|
|
text-shadow: 0 2px 16px rgba(4, 9, 7, 0.22);
|
|
}
|
|
|
|
.setup-summary-grid {
|
|
display: grid;
|
|
gap: 12px;
|
|
}
|
|
|
|
.setup-summary-item {
|
|
padding: 16px 18px;
|
|
border: 1px solid rgba(16, 185, 129, 0.14);
|
|
border-radius: 8px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 14px;
|
|
background: rgba(248, 250, 252, 0.9);
|
|
}
|
|
|
|
.setup-summary-item strong {
|
|
display: block;
|
|
color: #0f172a;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.setup-summary-item span {
|
|
display: block;
|
|
margin-top: 4px;
|
|
color: #64748b;
|
|
font-size: 12px;
|
|
line-height: 1.55;
|
|
}
|
|
|
|
.setup-summary-item .pi-check-circle {
|
|
color: #10b981;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.setup-summary-item .pi-clock {
|
|
color: #f59e0b;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.setup-error {
|
|
margin-top: 22px;
|
|
padding: 14px 16px;
|
|
border: 1px solid rgba(239, 68, 68, 0.18);
|
|
border-radius: 8px;
|
|
background: #fef2f2;
|
|
color: #b91c1c;
|
|
white-space: pre-line;
|
|
}
|
|
|
|
.setup-status {
|
|
margin-top: 22px;
|
|
padding: 14px 16px;
|
|
border-radius: 8px;
|
|
white-space: pre-line;
|
|
}
|
|
|
|
.setup-status.is-success {
|
|
border: 1px solid rgba(16, 185, 129, 0.18);
|
|
background: #ecfdf5;
|
|
color: #047857;
|
|
}
|
|
|
|
.setup-status.is-danger {
|
|
border: 1px solid rgba(239, 68, 68, 0.18);
|
|
background: #fef2f2;
|
|
color: #b91c1c;
|
|
}
|
|
|
|
.setup-gate {
|
|
margin-top: 14px;
|
|
padding: 12px 14px;
|
|
border: 1px solid rgba(245, 158, 11, 0.2);
|
|
border-radius: 8px;
|
|
background: #fffbeb;
|
|
color: #b45309;
|
|
}
|
|
|
|
.setup-actions {
|
|
margin-top: 28px;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.setup-actions-right {
|
|
display: flex;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.primary-btn,
|
|
.secondary-btn {
|
|
min-height: 46px;
|
|
padding: 0 18px;
|
|
border-radius: 8px;
|
|
border: 1px solid transparent;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
font-weight: 700;
|
|
transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
|
|
}
|
|
|
|
.primary-btn {
|
|
background: linear-gradient(135deg, #10b981, #0f766e);
|
|
color: #fff;
|
|
box-shadow: 0 14px 28px rgba(16, 185, 129, 0.24);
|
|
}
|
|
|
|
.secondary-btn {
|
|
background: rgba(240, 253, 244, 0.94);
|
|
color: #1f4f41;
|
|
border-color: rgba(16, 185, 129, 0.18);
|
|
}
|
|
|
|
.secondary-btn-strong {
|
|
background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(5, 150, 105, 0.12));
|
|
color: #065f46;
|
|
}
|
|
|
|
.primary-btn:hover,
|
|
.secondary-btn:hover {
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.primary-btn:disabled,
|
|
.secondary-btn:disabled {
|
|
opacity: 0.55;
|
|
cursor: not-allowed;
|
|
box-shadow: none;
|
|
transform: none;
|
|
}
|
|
|
|
@media (max-width: 1180px) {
|
|
.setup-page {
|
|
grid-template-columns: 1fr;
|
|
background:
|
|
radial-gradient(circle at top right, rgba(16, 185, 129, 0.2), transparent 22rem),
|
|
linear-gradient(180deg, #04110d 0%, #10281f 36%, #eef5f1 36%, #f6fbf8 100%);
|
|
}
|
|
|
|
.setup-context,
|
|
.setup-panel {
|
|
padding: 28px 24px;
|
|
}
|
|
|
|
.setup-complete {
|
|
padding-inline: 0;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 820px) {
|
|
.field-grid-2,
|
|
.setup-runtime {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.field-span-2 {
|
|
grid-column: auto;
|
|
}
|
|
|
|
.setup-actions {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.setup-actions-right {
|
|
width: 100%;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.primary-btn,
|
|
.secondary-btn {
|
|
width: 100%;
|
|
}
|
|
}
|