mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2026-03-22 00:16:18 +00:00
implement challenge verification flow with altcha integration and add challenge page
This commit is contained in:
@@ -238,6 +238,78 @@ input:focus {
|
||||
margin: 2px 2px 2px 0;
|
||||
}
|
||||
|
||||
/* ── Challenge page ── */
|
||||
.challenge-wrapper {
|
||||
text-align: center;
|
||||
padding: 8px 0 4px;
|
||||
}
|
||||
|
||||
.challenge-icon-wrap {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.challenge-icon {
|
||||
font-size: 44px;
|
||||
line-height: 1;
|
||||
display: inline-block;
|
||||
transition: transform 300ms ease;
|
||||
}
|
||||
|
||||
.challenge-icon-done {
|
||||
color: #22c55e;
|
||||
font-style: normal;
|
||||
font-size: 40px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.challenge-icon-error {
|
||||
color: var(--danger);
|
||||
font-style: normal;
|
||||
font-size: 40px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.challenge-error-text {
|
||||
color: var(--danger);
|
||||
}
|
||||
|
||||
.challenge-progress {
|
||||
margin-top: 24px;
|
||||
}
|
||||
|
||||
.altcha-wrapper {
|
||||
position: absolute;
|
||||
left: -9999px;
|
||||
top: -9999px;
|
||||
width: 0;
|
||||
height: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.progress-bar {
|
||||
width: 100%;
|
||||
height: 5px;
|
||||
background: var(--line);
|
||||
border-radius: 99px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.progress-fill {
|
||||
height: 100%;
|
||||
width: 0%;
|
||||
background: var(--accent);
|
||||
border-radius: 99px;
|
||||
transition: width 200ms ease, background 300ms ease;
|
||||
}
|
||||
|
||||
.progress-done {
|
||||
background: #22c55e !important;
|
||||
}
|
||||
|
||||
.progress-error {
|
||||
background: var(--danger) !important;
|
||||
}
|
||||
|
||||
/* ── Dark mode toggle ── */
|
||||
#dark-mode-toggle {
|
||||
position: fixed;
|
||||
|
||||
Reference in New Issue
Block a user