Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Redesign portal sign-in surface

rcourtmanecf99c393a9e
diff --git a/docs/release-control/v6/internal/PULSE_ACCOUNT_PORTAL_SPEC.md b/docs/release-control/v6/internal/PULSE_ACCOUNT_PORTAL_SPEC.md
index 9fd6b625be..873baf9d5d 100644
--- a/docs/release-control/v6/internal/PULSE_ACCOUNT_PORTAL_SPEC.md
+++ b/docs/release-control/v6/internal/PULSE_ACCOUNT_PORTAL_SPEC.md
@@ -491,6 +491,11 @@ tree and rebuild the committed bundle instead of editing embedded script or CSS
blobs directly. Coordination between account-shell modules should stay inside
that owned runtime boundary as well, rather than drifting back to
document-wide custom events or browser-global runtime objects.
+The same frontend seam owns the signed-out account surface too: `/portal`
+before auth must render as the same calm account product, not as a leftover
+marketing block plus a generic form card. The primary sign-in action should be
+obvious, supporting account scope should stay precise, and the auth surface
+should use the same flat, restrained visual system as the signed-in shell.
### Post-lane follow-on
diff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.md
index ec31b07fcc..09bf90cde7 100644
--- a/docs/release-control/v6/internal/subsystems/api-contracts.md
+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md
@@ -391,6 +391,10 @@ decorative dashboard chrome; lighter shell framing; list/detail and row-based
task presentation; restrained accent use; and hierarchy driven by spacing,
typography, and dividers rather than dense pills, stacked metrics, or
ornamental side rails competing with the active task.
+That same typed page contract also applies before auth: the signed-out portal
+surface must keep one obvious sign-in action plus precise account-scope
+presentation, instead of falling back to a separate marketing-like hero and
+generic login card that drifts away from the owned account shell model.
plus a package-local `tsc --noEmit` gate, so future account-shell work should
extend the typed source boundary instead of reviving opaque global runtime
objects, document-wide render events, or untyped embedded asset edits.
diff --git a/docs/release-control/v6/internal/subsystems/cloud-paid.md b/docs/release-control/v6/internal/subsystems/cloud-paid.md
index c4c45c1ce8..b2cbba133c 100644
--- a/docs/release-control/v6/internal/subsystems/cloud-paid.md
+++ b/docs/release-control/v6/internal/subsystems/cloud-paid.md
@@ -911,6 +911,11 @@ Navigation chrome, account framing, and overview panels must stay visually
quieter than the active task surface, with flatter light treatment and
list-first task presentation instead of dark ornamental rails or nested
explanatory cards.
+That same owned shell also owns the signed-out visual posture: the unauthenticated
+`/portal` page must read like the same product boundary, not a leftover
+marketing block plus a generic login card. The auth surface should present one
+obvious sign-in action, precise account-scope rows, and the same restrained
+flat system as the signed-in account shell.
The same shell/runtime boundary must also stay honest to hosted-account
permissions: when the current role is view-only, `Workspaces`, `Access`, and
hosted `Billing` copy must not advertise create, roster-mutation, or hosted
diff --git a/internal/cloudcp/portal/dist/build_manifest.json b/internal/cloudcp/portal/dist/build_manifest.json
index 4486b5ecef..a3779a172d 100644
--- a/internal/cloudcp/portal/dist/build_manifest.json
+++ b/internal/cloudcp/portal/dist/build_manifest.json
@@ -1,5 +1,5 @@
{
- "source_hash": "907404c494915ca193b1ae63995024d128a4f998d512cbe7c62a911574ab320b",
+ "source_hash": "f7f77f15e1e887cf22dbf1d2761f62f85af88f539f80de9e7b84facb9c43c890",
"build_inputs": [
"package.json",
"tsconfig.json",
diff --git a/internal/cloudcp/portal/dist/portal_app.css b/internal/cloudcp/portal/dist/portal_app.css
index d0ad6e2f80..5ef5e4e708 100644
--- a/internal/cloudcp/portal/dist/portal_app.css
+++ b/internal/cloudcp/portal/dist/portal_app.css
@@ -3782,6 +3782,184 @@ header .logout-btn,
.portal-support-link:hover {
text-decoration: underline;
}
+.portal-auth-shell {
+ display: grid;
+ grid-template-columns: minmax(0, 1fr) 420px;
+ gap: 24px;
+ align-items: start;
+ min-height: calc(100vh - 140px);
+}
+.portal-auth-intro,
+.portal-auth-card {
+ border: 1px solid var(--line);
+ border-radius: var(--radius-lg);
+ background: var(--panel);
+}
+.portal-auth-intro {
+ display: flex;
+ flex-direction: column;
+ gap: 16px;
+ padding: 30px 32px;
+}
+.portal-auth-intro h1 {
+ margin: 0;
+ max-width: 12ch;
+ font-family: var(--font-display);
+ font-size: 56px;
+ line-height: 0.94;
+ letter-spacing: -0.06em;
+ color: var(--ink);
+}
+.portal-auth-intro p {
+ margin: 0;
+ max-width: 60ch;
+ font-size: 15px;
+ line-height: 1.65;
+ color: var(--ink-soft);
+}
+.portal-auth-scope-list {
+ display: grid;
+ gap: 0;
+ margin-top: 6px;
+}
+.portal-auth-scope-row {
+ display: grid;
+ grid-template-columns: 112px minmax(0, 1fr);
+ gap: 16px;
+ align-items: start;
+ padding: 14px 0;
+ border-top: 1px solid var(--line);
+}
+.portal-auth-scope-row h3,
+.portal-auth-card h2 {
+ margin: 0;
+ color: var(--ink);
+}
+.portal-auth-scope-row h3 {
+ font-size: 13px;
+ font-weight: 700;
+ letter-spacing: 0;
+}
+.portal-auth-scope-row p {
+ margin: 0;
+ max-width: none;
+ font-size: 14px;
+ line-height: 1.55;
+}
+.portal-auth-panel {
+ position: sticky;
+ top: 84px;
+}
+.portal-auth-card {
+ display: flex;
+ flex-direction: column;
+ gap: 14px;
+ padding: 24px;
+}
+.portal-auth-card h2 {
+ font-family: var(--font-display);
+ font-size: 28px;
+ line-height: 1.05;
+ letter-spacing: -0.045em;
+}
+.portal-auth-card > p {
+ margin: 0;
+ font-size: 14px;
+ line-height: 1.6;
+ color: var(--ink-soft);
+}
+.portal-auth-form-group {
+ display: flex;
+ flex-direction: column;
+ gap: 8px;
+ margin-top: 4px;
+}
+.portal-auth-form-group label {
+ font-size: 13px;
+ font-weight: 600;
+ line-height: 1.4;
+ color: var(--ink);
+}
+.portal-auth-form-group input {
+ width: 100%;
+ min-height: 44px;
+ padding: 0 14px;
+ border: 1px solid var(--line-strong);
+ border-radius: 12px;
+ background: #fff;
+ color: var(--ink);
+ font: inherit;
+ box-shadow: none;
+}
+.portal-auth-form-group input::placeholder {
+ color: #8a94a3;
+}
+.portal-auth-form-group input:focus {
+ outline: none;
+ border-color: var(--accent);
+ box-shadow: 0 0 0 3px rgba(11, 87, 208, 0.12);
+}
+.portal-auth-actions {
+ margin-top: 2px;
+}
+.portal-auth-actions .btn-primary {
+ min-width: 160px;
+}
+.portal-auth-secondary-action {
+ margin: -4px 0 0;
+ font-size: 13px;
+ line-height: 1.5;
+ color: var(--ink-soft);
+}
+.portal-auth-secondary-action a {
+ color: var(--accent);
+ font-weight: 600;
+ text-decoration: none;
+}
+.portal-auth-secondary-action a:hover {
+ text-decoration: underline;
+}
+.form-group {
+ display: flex;
+ flex-direction: column;
+ gap: 8px;
+}
+.form-group label {
+ font-size: 13px;
+ font-weight: 600;
+ line-height: 1.4;
+ color: var(--ink);
+}
+.form-group input,
+.form-group textarea,
+.form-group select {
+ width: 100%;
+ min-height: 44px;
+ padding: 0 14px;
+ border: 1px solid var(--line-strong);
+ border-radius: 12px;
+ background: #fff;
+ color: var(--ink);
+ font: inherit;
+ box-shadow: none;
+}
+.form-group textarea {
+ min-height: 120px;
+ padding-top: 12px;
+ padding-bottom: 12px;
+ resize: vertical;
+}
+.form-group input::placeholder,
+.form-group textarea::placeholder {
+ color: #8a94a3;
+}
+.form-group input:focus,
+.form-group textarea:focus,
+.form-group select:focus {
+ outline: none;
+ border-color: var(--accent);
+ box-shadow: 0 0 0 3px rgba(11, 87, 208, 0.12);
+}
@media (max-width: 960px) {
.main {
padding: 16px 16px 40px;
@@ -3815,9 +3993,29 @@ header .logout-btn,
.workspace-operations-shell,
.access-shell,
.billing-shell,
+ .portal-auth-shell,
.portal-support-layout {
grid-template-columns: 1fr;
}
+ .portal-auth-shell {
+ min-height: 0;
+ }
+ .portal-auth-panel {
+ position: static;
+ order: -1;
+ }
+ .portal-auth-intro,
+ .portal-auth-card {
+ padding: 22px 22px 24px;
+ }
+ .portal-auth-intro h1 {
+ max-width: 9ch;
+ font-size: 42px;
+ }
+ .portal-auth-scope-row {
+ grid-template-columns: 1fr;
+ gap: 6px;
+ }
.portal-account-context {
gap: 16px;
padding: 18px 18px 20px;
@@ -3883,4 +4081,22 @@ header .logout-btn,
.portal-account-context-summary {
grid-template-columns: 1fr;
}
+ .portal-auth-intro,
+ .portal-auth-card {
+ padding: 18px 18px 20px;
+ }
+ .portal-auth-intro h1,
+ .portal-auth-card h2 {
+ font-size: 24px;
+ line-height: 1.08;
+ }
+ .portal-auth-intro p,
+ .portal-auth-scope-row p,
+ .portal-auth-card > p {
+ font-size: 14px;
+ }
+ .portal-auth-actions .btn-primary {
+ width: 100%;
+ justify-content: center;
+ }
}
diff --git a/internal/cloudcp/portal/dist/portal_app.js b/internal/cloudcp/portal/dist/portal_app.js
index d65b9331ad..9c7ea117f9 100644
--- a/internal/cloudcp/portal/dist/portal_app.js
+++ b/internal/cloudcp/portal/dist/portal_app.js
@@ -2511,15 +2511,18 @@
'<div class="subsection"><div id="data-export-root"></div></div><div class="subsection"><div id="data-delete-root"></div></div><div class="helper-text">Payment-card data stays with Stripe. For Stripe deletion support, contact <a href="mailto:' + escapeAttr(context.bootstrap.support_email || "") + '">' + escapeHTML(context.bootstrap.support_email || "") + "</a>.</div>"
) + "</div></div>" : "") + '</section><section class="portal-content-panel portal-content-panel-support">' + renderSupportSection(context) + "</section></div></div></div>";
}
+ function renderAuthScopeRow(title, copy) {
+ return '<article class="portal-auth-scope-row"><h3>' + escapeHTML(title) + "</h3><p>" + escapeHTML(copy) + "</p></article>";
+ }
function renderSignedOutPortalHTML(context) {
var statusHTML = "";
if (context.loginState.request.error) {
statusHTML = '<div class="billing-status visible error">' + escapeHTML(context.loginState.request.error) + "</div>";
} else if (context.loginState.success) {
- var successMessage = context.loginState.successMessage || "If that email is registered, a magic link is on the way.";
- statusHTML = '<div class="billing-status visible success">' + escapeHTML(successMessage) + `<br><br><strong>Don't see it?</strong> <a href="#" data-portal-action="resend-magic-link">Send a new link</a>.</div>`;
+ var successMessage = context.loginState.successMessage || "If that email is registered, a sign-in link is on the way.";
+ statusHTML = '<div class="billing-status visible success">' + escapeHTML(successMessage) + '<br><br><strong>Need another link?</strong> <a href="#" data-portal-action="resend-magic-link">Send it again</a>.</div>';
}
- return '<section class="intro-card"><div class="account-panel-kicker">Pulse Account</div><h1>Sign in to Pulse Account</h1><p>Use one commercial email address to get into workspaces, MSP access, billing, license recovery, refunds, and privacy actions.</p></section><section class="billing-section billing-section-auth"><div class="billing-panel visible auth-panel"><h3>Sign in</h3><p>Enter the commercial email address for your Pulse account. I will send a magic link so you can open Pulse Account without managing a password.</p><div class="form-group"><label for="portal-login-email">Email address</label><input id="portal-login-email" type="email" autocomplete="email" placeholder="[email protected]" value="' + escapeAttr(context.loginState.emailValue || "") + '" data-portal-input="login-email"></div><div class="form-actions"><button class="btn-primary" id="portal-login-send" type="button" data-portal-action="send-magic-link">' + (context.loginState.request.pending ? "Sending\u2026" : "Send magic link") + '</button><a class="btn-secondary link-button" href="' + escapeAttr(context.signupPath) + '">Create an account</a></div>' + statusHTML + "</div></section>";
+ return '<section class="portal-auth-shell"><div class="portal-auth-intro"><div class="account-panel-kicker">Pulse Account</div><h1>Sign in to Pulse Account</h1><p>Use one commercial email address for hosted workspaces, account access, billing, licenses, refunds, and privacy requests.</p><div class="portal-auth-scope-list" aria-label="Pulse Account scope">' + renderAuthScopeRow("Workspaces", "Open hosted workspaces and review lifecycle state.") + renderAuthScopeRow("Access", "Review account access and manage roles when permitted.") + renderAuthScopeRow("Billing", "Open hosted billing or self-hosted commercial tools when they apply.") + '</div></div><section class="portal-auth-panel" aria-labelledby="portal-auth-title"><div class="portal-auth-card"><div class="account-panel-kicker">Sign in</div><h2 id="portal-auth-title">Email sign-in link</h2><p>Enter the commercial email address for your Pulse account. A sign-in link will be sent to that address.</p><div class="form-group portal-auth-form-group"><label for="portal-login-email">Commercial email</label><input id="portal-login-email" type="email" autocomplete="email" placeholder="[email protected]" value="' + escapeAttr(context.loginState.emailValue || "") + '" data-portal-input="login-email"></div><div class="form-actions portal-auth-actions"><button class="btn-primary" id="portal-login-send" type="button" data-portal-action="send-magic-link">' + (context.loginState.request.pending ? "Sending\u2026" : "Send sign-in link") + '</button></div><p class="portal-auth-secondary-action">Need a new Pulse Account? <a href="' + escapeAttr(context.signupPath) + '">Create an account</a>.</p>' + statusHTML + "</div></section></section>";
}
// src/shell.ts
diff --git a/internal/cloudcp/portal/frontend/src/app.test.ts b/internal/cloudcp/portal/frontend/src/app.test.ts
index da21c3b5ad..6cb6a2f3f9 100644
--- a/internal/cloudcp/portal/frontend/src/app.test.ts
+++ b/internal/cloudcp/portal/frontend/src/app.test.ts
@@ -213,7 +213,7 @@ describe('portal app', function() {
body: JSON.stringify({ email: '[email protected]', target: 'portal' }),
})
);
- expect(document.getElementById('portal-app-root')?.textContent).toContain('If that email is registered, a magic link is on the way.');
+ expect(document.getElementById('portal-app-root')?.textContent).toContain('If that email is registered, a sign-in link is on the way.');
});
it('completes the retrieve-license flow through the real authenticated app shell', async function() {
diff --git a/internal/cloudcp/portal/frontend/src/shell_view.test.ts b/internal/cloudcp/portal/frontend/src/shell_view.test.ts
index 4780382b84..2075adabcd 100644
--- a/internal/cloudcp/portal/frontend/src/shell_view.test.ts
+++ b/internal/cloudcp/portal/frontend/src/shell_view.test.ts
@@ -682,7 +682,11 @@ describe('shell view', function() {
expect(errorHTML).toContain('value="[email protected]"');
expect(errorHTML).toContain('Invalid email');
- expect(successHTML).toContain('If that email is registered, a magic link is on the way.');
+ expect(errorHTML).toContain('portal-auth-shell');
+ expect(errorHTML).toContain('Email sign-in link');
+ expect(errorHTML).toContain('Commercial email');
+ expect(errorHTML).toContain('Send sign-in link');
+ expect(successHTML).toContain('If that email is registered, a sign-in link is on the way.');
expect(successHTML).toContain('data-portal-action="resend-magic-link"');
});
diff --git a/internal/cloudcp/portal/frontend/src/shell_view.ts b/internal/cloudcp/portal/frontend/src/shell_view.ts
index b3aa10633d..b766df2122 100644
--- a/internal/cloudcp/portal/frontend/src/shell_view.ts
+++ b/internal/cloudcp/portal/frontend/src/shell_view.ts
@@ -1488,42 +1488,59 @@ export function renderAuthenticatedPortalHTML(context: ShellViewContext): string
);
}
+function renderAuthScopeRow(title: string, copy: string): string {
+ return (
+ '<article class="portal-auth-scope-row">' +
+ '<h3>' + escapeHTML(title) + '</h3>' +
+ '<p>' + escapeHTML(copy) + '</p>' +
+ '</article>'
+ );
+}
+
export function renderSignedOutPortalHTML(context: ShellViewContext): string {
var statusHTML = '';
if (context.loginState.request.error) {
statusHTML = '<div class="billing-status visible error">' + escapeHTML(context.loginState.request.error) + '</div>';
} else if (context.loginState.success) {
- var successMessage = context.loginState.successMessage || 'If that email is registered, a magic link is on the way.';
+ var successMessage = context.loginState.successMessage || 'If that email is registered, a sign-in link is on the way.';
statusHTML =
'<div class="billing-status visible success">' +
escapeHTML(successMessage) +
- '<br><br><strong>Don\'t see it?</strong> <a href="#" data-portal-action="resend-magic-link">Send a new link</a>.' +
+ '<br><br><strong>Need another link?</strong> <a href="#" data-portal-action="resend-magic-link">Send it again</a>.' +
'</div>';
}
return (
- '<section class="intro-card">' +
- '<div class="account-panel-kicker">Pulse Account</div>' +
- '<h1>Sign in to Pulse Account</h1>' +
- '<p>Use one commercial email address to get into workspaces, MSP access, billing, license recovery, refunds, and privacy actions.</p>' +
- '</section>' +
- '<section class="billing-section billing-section-auth">' +
- '<div class="billing-panel visible auth-panel">' +
- '<h3>Sign in</h3>' +
- '<p>Enter the commercial email address for your Pulse account. I will send a magic link so you can open Pulse Account without managing a password.</p>' +
- '<div class="form-group">' +
- '<label for="portal-login-email">Email address</label>' +
- '<input id="portal-login-email" type="email" autocomplete="email" placeholder="[email protected]" value="' +
- escapeAttr(context.loginState.emailValue || '') +
- '" data-portal-input="login-email">' +
+ '<section class="portal-auth-shell">' +
+ '<div class="portal-auth-intro">' +
+ '<div class="account-panel-kicker">Pulse Account</div>' +
+ '<h1>Sign in to Pulse Account</h1>' +
+ '<p>Use one commercial email address for hosted workspaces, account access, billing, licenses, refunds, and privacy requests.</p>' +
+ '<div class="portal-auth-scope-list" aria-label="Pulse Account scope">' +
+ renderAuthScopeRow('Workspaces', 'Open hosted workspaces and review lifecycle state.') +
+ renderAuthScopeRow('Access', 'Review account access and manage roles when permitted.') +
+ renderAuthScopeRow('Billing', 'Open hosted billing or self-hosted commercial tools when they apply.') +
'</div>' +
- '<div class="form-actions">' +
- '<button class="btn-primary" id="portal-login-send" type="button" data-portal-action="send-magic-link">' +
- (context.loginState.request.pending ? 'Sending…' : 'Send magic link') +
- '</button>' +
- '<a class="btn-secondary link-button" href="' + escapeAttr(context.signupPath) + '">Create an account</a>' +
- '</div>' +
- statusHTML +
'</div>' +
+ '<section class="portal-auth-panel" aria-labelledby="portal-auth-title">' +
+ '<div class="portal-auth-card">' +
+ '<div class="account-panel-kicker">Sign in</div>' +
+ '<h2 id="portal-auth-title">Email sign-in link</h2>' +
+ '<p>Enter the commercial email address for your Pulse account. A sign-in link will be sent to that address.</p>' +
+ '<div class="form-group portal-auth-form-group">' +
+ '<label for="portal-login-email">Commercial email</label>' +
+ '<input id="portal-login-email" type="email" autocomplete="email" placeholder="[email protected]" value="' +
+ escapeAttr(context.loginState.emailValue || '') +
+ '" data-portal-input="login-email">' +
+ '</div>' +
+ '<div class="form-actions portal-auth-actions">' +
+ '<button class="btn-primary" id="portal-login-send" type="button" data-portal-action="send-magic-link">' +
+ (context.loginState.request.pending ? 'Sending…' : 'Send sign-in link') +
+ '</button>' +
+ '</div>' +
+ '<p class="portal-auth-secondary-action">Need a new Pulse Account? <a href="' + escapeAttr(context.signupPath) + '">Create an account</a>.</p>' +
+ statusHTML +
+ '</div>' +
+ '</section>' +
'</section>'
);
}
diff --git a/internal/cloudcp/portal/frontend/src/styles.css b/internal/cloudcp/portal/frontend/src/styles.css
index cd3b898e9a..45dd476cd3 100644
--- a/internal/cloudcp/portal/frontend/src/styles.css
+++ b/internal/cloudcp/portal/frontend/src/styles.css
@@ -4199,6 +4199,214 @@ header .logout-btn,
text-decoration: underline;
}
+.portal-auth-shell {
+ display: grid;
+ grid-template-columns: minmax(0, 1fr) 420px;
+ gap: 24px;
+ align-items: start;
+ min-height: calc(100vh - 140px);
+}
+
+.portal-auth-intro,
+.portal-auth-card {
+ border: 1px solid var(--line);
+ border-radius: var(--radius-lg);
+ background: var(--panel);
+}
+
+.portal-auth-intro {
+ display: flex;
+ flex-direction: column;
+ gap: 16px;
+ padding: 30px 32px;
+}
+
+.portal-auth-intro h1 {
+ margin: 0;
+ max-width: 12ch;
+ font-family: var(--font-display);
+ font-size: 56px;
+ line-height: 0.94;
+ letter-spacing: -0.06em;
+ color: var(--ink);
+}
+
+.portal-auth-intro p {
+ margin: 0;
+ max-width: 60ch;
+ font-size: 15px;
+ line-height: 1.65;
+ color: var(--ink-soft);
+}
+
+.portal-auth-scope-list {
+ display: grid;
+ gap: 0;
+ margin-top: 6px;
+}
+
+.portal-auth-scope-row {
+ display: grid;
+ grid-template-columns: 112px minmax(0, 1fr);
+ gap: 16px;
+ align-items: start;
+ padding: 14px 0;
+ border-top: 1px solid var(--line);
+}
+
+.portal-auth-scope-row h3,
+.portal-auth-card h2 {
+ margin: 0;
+ color: var(--ink);
+}
+
+.portal-auth-scope-row h3 {
+ font-size: 13px;
+ font-weight: 700;
+ letter-spacing: 0;
+}
+
+.portal-auth-scope-row p {
+ margin: 0;
+ max-width: none;
+ font-size: 14px;
+ line-height: 1.55;
+}
+
+.portal-auth-panel {
+ position: sticky;
+ top: 84px;
+}
+
+.portal-auth-card {
+ display: flex;
+ flex-direction: column;
+ gap: 14px;
+ padding: 24px;
+}
+
+.portal-auth-card h2 {
+ font-family: var(--font-display);
+ font-size: 28px;
+ line-height: 1.05;
+ letter-spacing: -0.045em;
+}
+
+.portal-auth-card > p {
+ margin: 0;
+ font-size: 14px;
+ line-height: 1.6;
+ color: var(--ink-soft);
+}
+
+.portal-auth-form-group {
+ display: flex;
+ flex-direction: column;
+ gap: 8px;
+ margin-top: 4px;
+}
+
+.portal-auth-form-group label {
+ font-size: 13px;
+ font-weight: 600;
+ line-height: 1.4;
+ color: var(--ink);
+}
+
+.portal-auth-form-group input {
+ width: 100%;
+ min-height: 44px;
+ padding: 0 14px;
+ border: 1px solid var(--line-strong);
+ border-radius: 12px;
+ background: #fff;
+ color: var(--ink);
+ font: inherit;
+ box-shadow: none;
+}
+
+.portal-auth-form-group input::placeholder {
+ color: #8a94a3;
+}
+
+.portal-auth-form-group input:focus {
+ outline: none;
+ border-color: var(--accent);
+ box-shadow: 0 0 0 3px rgba(11, 87, 208, 0.12);
+}
+
+.portal-auth-actions {
+ margin-top: 2px;
+}
+
+.portal-auth-actions .btn-primary {
+ min-width: 160px;
+}
+
+.portal-auth-secondary-action {
+ margin: -4px 0 0;
+ font-size: 13px;
+ line-height: 1.5;
+ color: var(--ink-soft);
+}
+
+.portal-auth-secondary-action a {
+ color: var(--accent);
+ font-weight: 600;
+ text-decoration: none;
+}
+
+.portal-auth-secondary-action a:hover {
+ text-decoration: underline;
+}
+
+.form-group {
+ display: flex;
+ flex-direction: column;
+ gap: 8px;
+}
+
+.form-group label {
+ font-size: 13px;
+ font-weight: 600;
+ line-height: 1.4;
+ color: var(--ink);
+}
+
+.form-group input,
+.form-group textarea,
+.form-group select {
+ width: 100%;
+ min-height: 44px;
+ padding: 0 14px;
+ border: 1px solid var(--line-strong);
+ border-radius: 12px;
+ background: #fff;
+ color: var(--ink);
+ font: inherit;
+ box-shadow: none;
+}
+
+.form-group textarea {
+ min-height: 120px;
+ padding-top: 12px;
+ padding-bottom: 12px;
+ resize: vertical;
+}
+
+.form-group input::placeholder,
+.form-group textarea::placeholder {
+ color: #8a94a3;
+}
+
+.form-group input:focus,
+.form-group textarea:focus,
+.form-group select:focus {
+ outline: none;
+ border-color: var(--accent);
+ box-shadow: 0 0 0 3px rgba(11, 87, 208, 0.12);
+}
+
@media (max-width: 960px) {
.main {
padding: 16px 16px 40px;
@@ -4239,10 +4447,35 @@ header .logout-btn,
.workspace-operations-shell,
.access-shell,
.billing-shell,
+ .portal-auth-shell,
.portal-support-layout {
grid-template-columns: 1fr;
}
+ .portal-auth-shell {
+ min-height: 0;
+ }
+
+ .portal-auth-panel {
+ position: static;
+ order: -1;
+ }
+
+ .portal-auth-intro,
+ .portal-auth-card {
+ padding: 22px 22px 24px;
+ }
+
+ .portal-auth-intro h1 {
+ max-width: 9ch;
+ font-size: 42px;
+ }
+
+ .portal-auth-scope-row {
+ grid-template-columns: 1fr;
+ gap: 6px;
+ }
+
.portal-account-context {
gap: 16px;
padding: 18px 18px 20px;
@@ -4322,4 +4555,26 @@ header .logout-btn,
.portal-account-context-summary {
grid-template-columns: 1fr;
}
+
+ .portal-auth-intro,
+ .portal-auth-card {
+ padding: 18px 18px 20px;
+ }
+
+ .portal-auth-intro h1,
+ .portal-auth-card h2 {
+ font-size: 24px;
+ line-height: 1.08;
+ }
+
+ .portal-auth-intro p,
+ .portal-auth-scope-row p,
+ .portal-auth-card > p {
+ font-size: 14px;
+ }
+
+ .portal-auth-actions .btn-primary {
+ width: 100%;
+ justify-content: center;
+ }
}