The console could only sign in with Google or GitHub, so it could not open before both OAuth apps exist (owner item Y-2). Add email sign-in: Scribase Auth mails a one-time code (POST /otp), the console redeems it (POST /verify), reads the user from the auth server, checks it matches the address, and opens the same session as the OAuth path. Same-origin checks on both posts; inputs validated before any call. RAILYARD_OAUTH_PROVIDERS picks the OAuth buttons (default google,github; empty = email only). 7 new tests, console 154/154, tsc clean. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
45 lines
2.9 KiB
CSS
45 lines
2.9 KiB
CSS
:root {
|
|
--bg: #eef1f5;
|
|
--ink: #1d2433;
|
|
--muted: #5d6677;
|
|
--accent: #2f5bea;
|
|
--glass: rgba(255, 255, 255, 0.62);
|
|
--line: rgba(29, 36, 51, 0.08);
|
|
--shadow: 8px 8px 24px rgba(163, 177, 198, 0.45), -8px -8px 24px rgba(255, 255, 255, 0.9);
|
|
--radius: 18px;
|
|
}
|
|
* { box-sizing: border-box; }
|
|
body {
|
|
margin: 0;
|
|
min-height: 100vh;
|
|
font: 15px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
color: var(--ink);
|
|
background: radial-gradient(1200px 600px at 10% -10%, #dfe7ff 0%, transparent 60%), var(--bg);
|
|
}
|
|
a { color: inherit; }
|
|
.shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
|
|
.nav { padding: 28px 18px; display: flex; flex-direction: column; gap: 6px; }
|
|
.brand { font-weight: 650; letter-spacing: 0.2px; margin: 0 10px 22px; }
|
|
.nav a { text-decoration: none; padding: 10px 12px; border-radius: 12px; color: var(--muted); }
|
|
.nav a[aria-current="page"] { background: var(--glass); color: var(--ink); box-shadow: var(--shadow); }
|
|
.main { padding: 36px 44px; max-width: 880px; }
|
|
.card { background: var(--glass); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 18px; }
|
|
h1 { font-size: 24px; margin: 0 0 18px; font-weight: 650; }
|
|
h2 { font-size: 16px; margin: 0 0 10px; }
|
|
.muted { color: var(--muted); }
|
|
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
|
|
.primary, .ghost { border: 0; border-radius: 12px; padding: 11px 18px; font: inherit; cursor: pointer; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
|
|
.primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(47, 91, 234, 0.3); }
|
|
.ghost { background: transparent; color: var(--muted); }
|
|
.icon { background: var(--glass); border: 1px solid var(--line); border-radius: 10px; width: 36px; height: 36px; display: inline-grid; place-items: center; cursor: pointer; }
|
|
input[type="text"], input[type="email"] { font: inherit; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; min-width: 240px; }
|
|
pre { background: #1d2433; color: #e8ecf5; padding: 14px 16px; border-radius: 12px; overflow-x: auto; margin: 0; font-size: 13px; }
|
|
.list { list-style: none; padding: 0; margin: 0; }
|
|
.list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
|
|
.error { color: #b42318; }
|
|
.ok { color: #1d7a4f; }
|
|
.center { min-height: 100vh; display: grid; place-items: center; }
|
|
.switch { display: inline-flex; gap: 4px; background: var(--glass); border-radius: 12px; padding: 4px; border: 1px solid var(--line); }
|
|
.switch button { border: 0; background: transparent; padding: 7px 12px; border-radius: 9px; cursor: pointer; font: inherit; color: var(--muted); }
|
|
.switch button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
|