1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
|
---
// SPDX-FileCopyrightText: 2026 Progmasoft <support@progmasoft.com>
// SPDX-License-Identifier: AGPL-3.0-or-later WITH AdditionRef-Progmasoft-Patent-Grant-1.0
interface Props {
mode: "login" | "register" | "recover";
}
const { mode } = Astro.props;
const copy = {
login: {
title: "Sign in",
description: "Use your Visual X# registry account.",
submit: "Next",
switchText: "New to the registry?",
switchLabel: "Create an account",
switchHref: "https://account.progmasoft.com/register",
},
register: {
title: "Create account",
description: "Publish and manage Visual X# packages.",
submit: "Next",
switchText: "Already have an account?",
switchLabel: "Sign in",
switchHref: "https://account.progmasoft.com/login",
},
recover: {
title: "Recover account",
description: "Reset your password securely.",
submit: "Send code",
switchText: "Remembered your password?",
switchLabel: "Sign in",
switchHref: "https://account.progmasoft.com/login",
},
} as const;
const content = copy[mode];
---
<main class="auth-main" data-auth-flow data-mode={mode}>
<section class="auth-card glass-panel">
<a class="auth-brand" href="https://viget.progmasoft.com/" aria-label="Visual X# package registry">
<img src="/xsharp-logo.webp" width="44" height="44" alt="" />
<span>Visual X# Registry</span>
</a>
<div class="auth-heading">
<p class="eyebrow">Visual X# package registry</p>
<h1>{content.title}</h1>
<p>{content.description}</p>
</div>
<div class="auth-alert" data-auth-alert hidden aria-live="polite"></div>
<button class="oauth-button" type="button" data-google>
<span class="google-mark" aria-hidden="true">G</span>
Continue with Google
</button>
<div class="auth-divider"><span>or continue with email</span></div>
<noscript>
<p class="auth-alert" data-kind="error">
JavaScript is required for the secure account flow. Enable it and reload this page.
</p>
</noscript>
<form class="auth-form" data-auth-form method="post" novalidate>
<div class="auth-step" data-step="email">
<label for="auth-email">Email address</label>
<input
id="auth-email"
name="email"
type="email"
autocomplete="email"
inputmode="email"
placeholder="name@example.com"
required
/>
<button class="auth-submit" type="submit">{content.submit}</button>
</div>
<div class="auth-step" data-step="password" hidden>
<button class="auth-back" type="button" data-back>← Change email</button>
<span class="auth-email-value" data-email-value></span>
<label for="auth-password">Password</label>
<input
id="auth-password"
name="password"
type="password"
autocomplete={mode === "register" ? "new-password" : "current-password"}
minlength="8"
required
/>
{
mode === "register" && (
<p class="field-hint">Use at least 8 characters. Passwordless accounts are not created.</p>
)
}
<button class="auth-submit" type="submit">{mode === "register" ? "Create account" : "Sign in"}</button>
{
mode === "login" && (
<a class="auth-recovery" href="https://account.progmasoft.com/recover">Forgot password?</a>
)
}
</div>
{
mode === "register" && (
<div class="auth-step" data-step="publisher" hidden>
<button class="auth-back" type="button" data-publisher-back>← Change password</button>
<span class="auth-email-value" data-email-value></span>
<label for="auth-publisher-name">Username</label>
<input
id="auth-publisher-name"
name="publisher-name"
type="text"
autocomplete="username"
autocapitalize="none"
spellcheck="false"
pattern="[A-Z][A-Za-z0-9]{7,127}"
minlength="8"
maxlength="128"
placeholder="MyPublisher"
required
/>
<p class="field-hint">
Use 8–128 ASCII letters or digits and start with an uppercase letter. <code>Progmasoft</code> and{" "}
<code>Leitwolf</code> are reserved.
</p>
<button class="auth-submit" type="submit">Continue</button>
</div>
)
}
<div class="auth-step" data-step="code" hidden>
<span class="auth-email-value" data-code-email></span>
<label for="auth-code">Verification code</label>
<input
id="auth-code"
name="code"
type="text"
autocomplete="one-time-code"
inputmode="text"
pattern="[A-Za-z0-9]{8}"
minlength="8"
maxlength="8"
placeholder="Enter the code from your email"
required
/>
<p class="field-hint">
The code is sent by <code>noreply@progmasoft.com</code>. It expires and can only be used once. If it does not
appear in your inbox, check your spam or junk folder.
</p>
<button class="auth-submit" type="submit">Verify email</button>
<button class="auth-resend" type="button" data-resend>Send another code</button>
</div>
<div class="auth-step" data-step="new-password" hidden>
<label for="auth-new-password">New password</label>
<input
id="auth-new-password"
name="new-password"
type="password"
autocomplete="new-password"
minlength="8"
required
/>
<button class="auth-submit" type="submit">Set new password</button>
</div>
</form>
<p class="auth-switch">
{content.switchText} <a href={content.switchHref}>{content.switchLabel}</a>
</p>
</section>
</main>
<script is:inline type="module" src="/scripts/auth-flow.v3.js"></script>
|