Files
vitareba/components/auth/auth-forms.module.css
CatoandClaude 0b8e9246c6 feat(auth): every way in on AccountKit's own screens (#160)
Vita answers sign-in from AccountKit since today's switch (loki
accountkit-switch.yml). This moves the pages onto AccountKit's screens:
SignInForm, SignUpForm and the recovery form in de/en/fr, AccountPanel on
the profile. Password, passkey, a second factor; the email link and
recovery with mail; OrangeCat and the bitbaum sign-in when their env is set.

What stays Vita's: no delete button (medical records are kept ten years:
accountDeletion: false, and the panel leads to the erasure request); the
name on `users` (ownProfile); the per-account lockout, now a plugin on
AccountKit's sign-in; a new person's users row, profile and welcome
sequence; the role-aware landing. The runtime answers only with
AUTH_RUNTIME=accountkit and is unavailable elsewhere, so it never writes
accounts an import would refuse.

NextAuth, the bridge and Vita's own registration, forgot-, reset- and
change-password routes are gone; AccountKit is the only credential writer.
Production has no Google client and no Google links, so nobody loses a way in.


Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-02 22:44:00 +01:00

170 lines
2.8 KiB
CSS

/* AccountKit's shared forms in Vita's look (components/auth/AuthForms.tsx).
Field, label, input and the primary button come from the one definition in
app/forms.module.css. */
.stack {
display: flex;
flex-direction: column;
gap: 1.25rem;
}
.field {
composes: field from "../../app/forms.module.css";
}
.label {
composes: label from "../../app/forms.module.css";
}
.input {
composes: input from "../../app/forms.module.css";
width: 100%;
}
.inputWrap {
position: relative;
display: flex;
align-items: center;
}
.inputWrap .input {
padding-right: 2.75rem;
}
.reveal {
position: absolute;
right: 0;
min-width: 2.75rem;
min-height: 2.75rem;
background: transparent;
border: none;
color: var(--muted);
cursor: pointer;
}
.reveal:hover,
.reveal:focus-visible {
color: var(--teal);
outline: none;
}
.button {
composes: submit from "../../app/forms.module.css";
margin-top: 0;
}
.buttonQuiet {
width: 100%;
min-height: 2.75rem;
padding: 0.75rem 1.25rem;
background: transparent;
color: var(--ink);
border: 1px solid var(--border);
border-radius: 0;
font-family: var(--font-dm-sans), sans-serif;
font-size: 0.75rem;
letter-spacing: 0.08em;
text-transform: uppercase;
cursor: pointer;
transition: border-color var(--transition-fast);
}
.buttonQuiet:hover,
.buttonQuiet:focus-visible {
border-color: var(--teal);
outline: none;
}
.buttonQuiet:disabled {
opacity: 0.5;
cursor: default;
}
.hint {
font-size: 0.75rem;
color: var(--muted);
line-height: 1.5;
}
.notice {
font-size: 0.8rem;
color: var(--ink2);
background: var(--teal-6);
border-radius: var(--radius-md);
padding: 0.75rem 1rem;
line-height: 1.5;
}
.error {
font-size: 0.75rem;
color: var(--danger);
}
.link {
font-size: 0.8rem;
color: var(--teal);
text-decoration: none;
background: none;
border: none;
padding: 0;
cursor: pointer;
font-family: inherit;
}
.link:hover,
.link:focus-visible {
text-decoration: underline;
outline: none;
}
.divider {
display: flex;
align-items: center;
gap: 0.75rem;
color: var(--muted);
font-size: 0.65rem;
text-transform: uppercase;
letter-spacing: 0.1em;
}
.divider::before,
.divider::after {
content: "";
flex: 1;
height: 1px;
background: var(--border);
}
.check {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.8rem;
color: var(--ink2);
min-height: 2.75rem;
}
.section {
display: flex;
flex-direction: column;
gap: 1rem;
background: var(--white);
border: 1px solid var(--border);
border-radius: var(--radius-xl);
padding: 1.5rem;
}
.sectionTitle {
font-family: var(--font-cormorant), serif;
font-size: 1.35rem;
font-weight: 300;
color: var(--ink);
margin: 0;
}
.panel {
display: flex;
flex-direction: column;
gap: 1.5rem;
}