- login.css/wallet.js: replace 2-tab (generate/import) UX with 3 big options — Create a new wallet [easiest], Import / add a wallet, Connect a wallet — WizardConnect [most private] (Cashonize/Paytaca placeholder, "coming soon"). - Caddyfile (both hostnames): /user/login now 302→ /user/oauth2/hephaestus-wallet. Escape hatch: /user/login?password=1 falls through to Forgejo's password form, linked from the picker footer as "Prefer old-school? Sign in with username & password".
117 lines
4.7 KiB
CSS
117 lines
4.7 KiB
CSS
:root {
|
|
color-scheme: light dark;
|
|
--bg: #0f1115;
|
|
--card: #171a21;
|
|
--text: #e6e8ec;
|
|
--muted: #8b93a1;
|
|
--accent: #ff8c00;
|
|
--accent-fg: #0f1115;
|
|
--border: #262a34;
|
|
--err: #ff6b6b;
|
|
--ok: #4ade80;
|
|
font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
}
|
|
@media (prefers-color-scheme: light) {
|
|
:root {
|
|
--bg: #f7f8fa;
|
|
--card: #ffffff;
|
|
--text: #0f1115;
|
|
--muted: #5a6473;
|
|
--border: #e4e7ec;
|
|
}
|
|
}
|
|
* { box-sizing: border-box; }
|
|
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); min-height: 100%; }
|
|
main {
|
|
max-width: 560px;
|
|
margin: 6vh auto;
|
|
padding: 36px 32px;
|
|
background: var(--card);
|
|
border: 1px solid var(--border);
|
|
border-radius: 14px;
|
|
}
|
|
h1 { font-size: 22px; margin: 0 0 6px; line-height: 1.3; }
|
|
h1 .acid { color: var(--accent); }
|
|
h2 { font-size: 17px; margin: 0 0 6px; }
|
|
p.lede { color: var(--muted); margin: 0 0 20px; font-size: 14px; }
|
|
p.sub { color: var(--muted); margin: 0 0 12px; font-size: 13.5px; }
|
|
|
|
/* --- Wallet picker (three big options — Create / Import / Connect) --- */
|
|
.wallet-picker { display: grid; gap: 10px; margin: 8px 0 18px; }
|
|
.wallet-opt {
|
|
display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start;
|
|
padding: 14px 16px; background: var(--bg); border: 1px solid var(--border);
|
|
border-radius: 10px; cursor: pointer; text-align: left; font: inherit; color: var(--text);
|
|
transition: border-color .1s, background .1s;
|
|
}
|
|
.wallet-opt:hover { border-color: var(--accent); background: var(--card); }
|
|
.wallet-opt .ico { font-size: 24px; line-height: 1; padding-top: 2px; }
|
|
.wallet-opt .body { display: flex; flex-direction: column; gap: 4px; }
|
|
.wallet-opt b { color: var(--text); font-size: 14.5px; font-weight: 600;
|
|
display: inline-flex; align-items: center; gap: 8px; }
|
|
.wallet-opt .sub { color: var(--muted); font-size: 13px; line-height: 1.5; }
|
|
.wallet-opt .pill {
|
|
display: inline-block; font-size: 10.5px; padding: 1px 8px; border-radius: 999px;
|
|
background: rgba(255,140,0,.14); color: var(--accent); font-weight: 500;
|
|
letter-spacing: 0.02em; text-transform: lowercase;
|
|
}
|
|
p.fine {
|
|
color: var(--muted); font-size: 12.5px; margin: 4px 0 0; text-align: center;
|
|
}
|
|
p.fine a { color: var(--muted); }
|
|
p.fine a:hover { color: var(--text); }
|
|
|
|
/* --- Selected flow panel (Create/Import/Connect) --- */
|
|
.flow { display: flex; flex-direction: column; gap: 4px; }
|
|
.flow > label { margin-top: 12px; }
|
|
.flow .row {
|
|
display: flex; gap: 10px; margin-top: 18px; align-items: center;
|
|
}
|
|
.flow .row .primary { flex: 1; margin-top: 0; }
|
|
.flow .row .ghost {
|
|
background: transparent; border: 1px solid var(--border); color: var(--muted);
|
|
padding: 10px 14px; border-radius: 8px; font: inherit; font-size: 13.5px;
|
|
cursor: pointer;
|
|
}
|
|
.flow .row .ghost:hover { color: var(--text); border-color: var(--muted); }
|
|
|
|
/* --- WizardConnect coming-soon panel --- */
|
|
.wc-supported { display: grid; gap: 8px; margin: 8px 0 14px; }
|
|
.wc-wallet {
|
|
display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center;
|
|
padding: 10px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
|
|
font-size: 13px;
|
|
}
|
|
.wc-wallet b { color: var(--text); }
|
|
.wc-wallet span { color: var(--dim, var(--muted)); font-size: 12px; }
|
|
.wc-wallet a { color: var(--accent); text-decoration: none; font-size: 12.5px; }
|
|
.wc-wallet a:hover { text-decoration: underline; }
|
|
.note-soon {
|
|
background: var(--bg); border: 1px dashed var(--border); border-left: 3px solid var(--accent);
|
|
border-radius: 8px; padding: 12px 14px; color: var(--muted); font-size: 13px;
|
|
}
|
|
.note-soon b { color: var(--text); }
|
|
label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 6px; }
|
|
input, textarea {
|
|
width: 100%; padding: 10px 12px; background: var(--bg);
|
|
color: var(--text); border: 1px solid var(--border); border-radius: 8px;
|
|
font: inherit; font-size: 14px; font-family: ui-monospace, monospace;
|
|
}
|
|
textarea { min-height: 84px; resize: vertical; }
|
|
button.primary {
|
|
width: 100%; padding: 12px; margin-top: 20px;
|
|
background: var(--accent); color: var(--accent-fg);
|
|
border: 0; border-radius: 8px; font: inherit; font-weight: 600;
|
|
cursor: pointer;
|
|
}
|
|
button.primary:disabled { opacity: 0.5; cursor: wait; }
|
|
.mono { font-family: ui-monospace, monospace; font-size: 12px; word-break: break-all; }
|
|
.warn { color: var(--err); font-size: 13px; margin-top: 8px; }
|
|
.ok { color: var(--ok); font-size: 13px; margin-top: 8px; }
|
|
.mnemonic-box {
|
|
background: var(--bg); border: 1px dashed var(--border);
|
|
border-radius: 8px; padding: 12px; margin-top: 8px;
|
|
font-family: ui-monospace, monospace; font-size: 13px; line-height: 1.7;
|
|
}
|
|
.small { font-size: 12px; color: var(--muted); }
|
|
.hidden { display: none; }
|