Files
DecomEval/web/src/features/auth/login-gate.css
T

190 lines
4.4 KiB
CSS

.gate.lv-tower {
--paper: color-mix(in srgb, #ebe4d2 70%, #d7dce2);
--ink-line: #2c3038;
--field: color-mix(in srgb, var(--paper) 70%, #fff);
--captcha-bg: #fff;
--muted-line: color-mix(in srgb, var(--ink-line) 42%, var(--paper));
--notice: #b4483e;
display: grid;
grid-template-columns: 88px minmax(0, 1fr);
align-items: stretch;
justify-items: stretch;
height: 100%;
min-height: 0;
padding: 0;
overflow: hidden;
contain: paint;
background: var(--paper);
color: var(--ink-line);
font-family: SimSun, "Songti SC", serif;
transition: background-color 0.22s ease, color 0.22s ease;
}
html[data-theme="dark"] .gate.lv-tower {
--paper: #161512;
--ink-line: #e6dece;
--field: #24211b;
--captcha-bg: #2c2922;
--notice: #e0978c;
}
.gate.lv-tower .theme-switch {
position: absolute;
top: 16px;
right: 16px;
z-index: 2;
color: var(--ink-line);
}
.gate.lv-tower .lv-mast {
position: relative;
align-self: stretch;
min-height: 100%;
border-right: 1px solid var(--ink-line);
overflow: hidden;
background:
repeating-linear-gradient(180deg, var(--ink-line) 0 1px, transparent 1px 36px) 64% 12% / 18px 80% no-repeat,
linear-gradient(var(--ink-line), var(--ink-line)) 50% 12% / 2px 80% no-repeat;
}
.gate.lv-tower .lv-mast span {
position: absolute;
left: 50%;
top: 8%;
width: 2px;
height: 84%;
background: var(--ink-line);
transform: translateX(-50%);
}
.gate.lv-tower .lv-mast span::before,
.gate.lv-tower .lv-mast span::after {
content: "";
position: absolute;
left: 50%;
width: 18px;
height: 1px;
background: var(--ink-line);
transform: translateX(-50%);
}
.gate.lv-tower .lv-mast span::before {
top: 12%;
box-shadow: 0 48px var(--ink-line), 0 96px var(--ink-line), 0 144px var(--ink-line);
}
.gate.lv-tower .lv-mast span::after {
top: 36%;
width: 28px;
}
.gate.lv-tower .lv-side {
width: min(460px, calc(100% - 48px));
margin: auto;
padding: 28px 0 32px;
background: transparent;
border: 0;
box-shadow: none;
border-radius: 0;
color: var(--ink-line);
}
.gate.lv-tower .lv-brand {
display: flex;
justify-content: center;
margin: 0 0 10px;
}
.gate.lv-tower .lv-side h1 {
width: 100%;
font-size: 28px;
font-weight: 700;
letter-spacing: 0.18em;
text-align: center;
}
.gate.lv-tower .lv-notice,
.gate.lv-tower .lv-brand + .lv-notice {
margin: 0 0 16px;
padding: 0;
border: 0;
border-radius: 0;
background: transparent;
color: var(--notice);
text-align: center;
font-size: 13px;
line-height: 1.45;
}
.gate.lv-tower .lv-fields {
display: grid;
grid-template-columns: 4.2em minmax(0, 1fr);
column-gap: 12px;
row-gap: 12px;
align-items: center;
padding: 8px 0 0;
}
.gate.lv-tower .lv-fields label {
margin: 0;
color: var(--ink-line);
}
.gate.lv-tower .lv-fields input {
width: 100%;
min-width: 0;
height: 36px;
padding: 0 8px;
border: 1px solid var(--ink-line);
border-radius: 0;
background: var(--field);
color: var(--ink-line);
font: inherit;
outline: none;
caret-color: var(--ink-line);
}
.gate.lv-tower .lv-fields input::placeholder {
color: var(--muted-line);
}
.gate.lv-tower .lv-fields input:focus {
box-shadow: inset 0 0 0 1px var(--ink-line);
}
.gate.lv-tower .lv-captcha,
.gate.lv-tower .lv-go {
grid-column: 2;
}
.gate.lv-tower .lv-captcha {
display: flex;
gap: 8px;
}
.gate.lv-tower .lv-captcha input { flex: 1; }
.gate.lv-tower .lv-captcha-box {
width: 108px;
height: 36px;
padding: 0;
border: 1px solid var(--ink-line);
border-radius: 0;
background: var(--captcha-bg);
}
.gate.lv-tower .lv-captcha-box:hover { border-color: var(--ink-line); }
.gate.lv-tower .lv-go {
justify-self: stretch;
width: 100%;
height: 40px;
margin-top: 8px;
border: 1px solid var(--ink-line);
border-radius: 0;
background: var(--ink-line);
color: var(--paper);
font: inherit;
font-size: 16px;
letter-spacing: 0.3em;
cursor: pointer;
}
.gate.lv-tower .lv-go:hover { filter: brightness(1.12); }
.gate.lv-tower .lv-go:disabled { opacity: 0.6; cursor: default; filter: none; }
@media (max-width: 720px) {
.gate.lv-tower { grid-template-columns: 28px 1fr; }
.gate.lv-tower .lv-side { width: calc(100% - 24px); padding: 24px 16px; }
}
@media (prefers-reduced-motion: no-preference) {
.gate.lv-tower .lv-mast {
clip-path: inset(8% 0 100% 0);
animation: lv-mast 1.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
}
@keyframes lv-mast {
to { clip-path: inset(0 0 0 0); }
}