feat(web): sign in by emailed code on the account page
Adds the email form (address, code, resend timer, aria-live status) shown only when /v1/info reports email_auth enabled, RU/EN strings, privacy policy update, API helpers, tests and browser QA with a mocked Hub.
This commit is contained in:
parent
309b77e63c
commit
a4cae66336
9 changed files with 528 additions and 28 deletions
|
|
@ -970,6 +970,70 @@ p {
|
|||
margin-top: 14px !important;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
.login-divider {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
margin: 28px 0 22px;
|
||||
color: var(--muted);
|
||||
font-size: 0.78rem;
|
||||
}
|
||||
.login-divider::before,
|
||||
.login-divider::after {
|
||||
content: "";
|
||||
flex: 1;
|
||||
border-top: 1px solid #ffffff12;
|
||||
}
|
||||
.email-form h3 {
|
||||
font-size: 1.15rem;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
.email-form p {
|
||||
font-size: 0.85rem;
|
||||
margin-top: 10px;
|
||||
}
|
||||
.email-form label {
|
||||
display: block;
|
||||
margin: 18px 0 8px;
|
||||
font-size: 0.78rem;
|
||||
color: #c5c0b8;
|
||||
}
|
||||
.field {
|
||||
width: 100%;
|
||||
min-height: 48px;
|
||||
padding: 11px 14px;
|
||||
background: #1b1b1d;
|
||||
color: var(--ink);
|
||||
border: 1px solid #4d4b47;
|
||||
border-radius: 7px;
|
||||
font-size: 1rem;
|
||||
font-family: inherit;
|
||||
}
|
||||
.field:focus-visible {
|
||||
outline: 2px solid var(--sand);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
.field[aria-invalid="true"] {
|
||||
border-color: #d2b7a5;
|
||||
}
|
||||
.code-field {
|
||||
font-variant-numeric: tabular-nums;
|
||||
letter-spacing: 0.2em;
|
||||
}
|
||||
.email-form .button {
|
||||
width: 100%;
|
||||
margin-top: 14px;
|
||||
}
|
||||
.email-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px 22px;
|
||||
margin-top: 14px;
|
||||
}
|
||||
.email-actions .text-button:disabled {
|
||||
cursor: default;
|
||||
text-decoration: none;
|
||||
}
|
||||
.privacy-note {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue