再次优化登陆注册界面
This commit is contained in:
@@ -100,54 +100,37 @@ async function handleLogin() {
|
|||||||
<button class="back-btn" type="button" @click="router.back()">
|
<button class="back-btn" type="button" @click="router.back()">
|
||||||
<van-icon name="arrow-left" :size="20" />
|
<van-icon name="arrow-left" :size="20" />
|
||||||
</button>
|
</button>
|
||||||
<h1>登录</h1>
|
|
||||||
<span class="header-spacer"></span>
|
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<section class="auth-body">
|
<section class="auth-body">
|
||||||
<div class="brand-row">
|
<div class="brand-lockup">
|
||||||
<div class="brand-logo">锤</div>
|
<div class="brand-logo">锤</div>
|
||||||
<div>
|
<strong>大锤商行</strong>
|
||||||
<strong>大锤商行</strong>
|
|
||||||
<p>平台担保 · 安全租号</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="auth-switch" aria-label="登录注册切换">
|
|
||||||
<RouterLink to="/m/login" class="active">登录</RouterLink>
|
|
||||||
<RouterLink to="/m/register">注册</RouterLink>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-section">
|
<div class="form-section">
|
||||||
<div class="section-heading">
|
<h1>登录</h1>
|
||||||
<h2>手机号登录</h2>
|
|
||||||
<p>使用短信验证码登录,开发环境验证码查看后端日志。</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<label class="auth-input-row">
|
<label class="auth-input-row">
|
||||||
<span class="input-label">手机号</span>
|
|
||||||
<span class="field-prefix">+86</span>
|
|
||||||
<input
|
<input
|
||||||
v-model="form.phone"
|
v-model="form.phone"
|
||||||
type="tel"
|
type="tel"
|
||||||
maxlength="11"
|
maxlength="11"
|
||||||
placeholder="请输入手机号"
|
placeholder="手机号"
|
||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<label class="auth-input-row code-row">
|
<label class="auth-input-row code-row">
|
||||||
<span class="input-label">验证码</span>
|
|
||||||
<input
|
<input
|
||||||
v-model="form.code"
|
v-model="form.code"
|
||||||
type="text"
|
type="text"
|
||||||
inputmode="numeric"
|
inputmode="numeric"
|
||||||
maxlength="6"
|
maxlength="6"
|
||||||
placeholder="6 位验证码"
|
placeholder="验证码"
|
||||||
/>
|
/>
|
||||||
<span class="code-action">
|
<span class="code-action">
|
||||||
<van-button
|
<van-button
|
||||||
size="small"
|
size="small"
|
||||||
type="primary"
|
|
||||||
plain
|
plain
|
||||||
:disabled="sending || countDown > 0"
|
:disabled="sending || countDown > 0"
|
||||||
:loading="sending"
|
:loading="sending"
|
||||||
@@ -165,6 +148,11 @@ async function handleLogin() {
|
|||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
|
<div class="assist-row">
|
||||||
|
<span>验证码登录</span>
|
||||||
|
<RouterLink to="/m/register">没有账号?<b>立即注册</b></RouterLink>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="agreement-row">
|
<div class="agreement-row">
|
||||||
<van-checkbox v-model="agreed" shape="square" icon-size="16px">
|
<van-checkbox v-model="agreed" shape="square" icon-size="16px">
|
||||||
我已阅读并同意《<b>用户协议</b>》和《<b>隐私政策</b>》
|
我已阅读并同意《<b>用户协议</b>》和《<b>隐私政策</b>》
|
||||||
@@ -181,11 +169,11 @@ async function handleLogin() {
|
|||||||
>
|
>
|
||||||
登录
|
登录
|
||||||
</van-button>
|
</van-button>
|
||||||
</div>
|
|
||||||
|
|
||||||
<RouterLink to="/m/register" class="secondary-entry">
|
<RouterLink to="/m/register" class="secondary-entry">
|
||||||
没有账号?立即注册
|
还没有账号,创建一个
|
||||||
</RouterLink>
|
</RouterLink>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</main>
|
</main>
|
||||||
</template>
|
</template>
|
||||||
@@ -193,166 +181,116 @@ async function handleLogin() {
|
|||||||
<style scoped>
|
<style scoped>
|
||||||
.mobile-login-shell {
|
.mobile-login-shell {
|
||||||
min-height: 100dvh;
|
min-height: 100dvh;
|
||||||
background: #f4f6f8;
|
background:
|
||||||
color: #151c28;
|
radial-gradient(circle at 50% 12%, rgba(20, 119, 255, 0.1), transparent 34%),
|
||||||
|
linear-gradient(180deg, #f8fbff 0%, #ffffff 70%, #f7fafc 100%);
|
||||||
|
color: #111827;
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-header {
|
.page-header {
|
||||||
position: sticky;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
height: 48px;
|
height: 48px;
|
||||||
padding: 0 12px;
|
|
||||||
background: #fff;
|
|
||||||
border-bottom: 1px solid #eceff3;
|
|
||||||
}
|
|
||||||
|
|
||||||
.page-header h1 {
|
|
||||||
flex: 1;
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-size: 17px;
|
padding: 0 18px;
|
||||||
font-weight: 700;
|
background: transparent;
|
||||||
text-align: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.back-btn {
|
.back-btn {
|
||||||
display: grid;
|
display: grid;
|
||||||
width: 36px;
|
width: 34px;
|
||||||
height: 36px;
|
height: 34px;
|
||||||
place-items: center;
|
place-items: center;
|
||||||
border: none;
|
border: none;
|
||||||
|
border-radius: 999px;
|
||||||
background: none;
|
background: none;
|
||||||
color: #25282d;
|
color: #111827;
|
||||||
}
|
|
||||||
|
|
||||||
.header-spacer {
|
|
||||||
width: 36px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.auth-body {
|
.auth-body {
|
||||||
padding: 14px;
|
box-sizing: border-box;
|
||||||
|
display: flex;
|
||||||
|
min-height: 100dvh;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 54px 34px 28px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.brand-row {
|
.brand-lockup {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 12px;
|
gap: 8px;
|
||||||
padding: 8px 2px 14px;
|
margin: 0 auto clamp(34px, 6vh, 54px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.brand-logo {
|
.brand-logo {
|
||||||
display: grid;
|
display: grid;
|
||||||
width: 42px;
|
width: 46px;
|
||||||
height: 42px;
|
height: 46px;
|
||||||
place-items: center;
|
place-items: center;
|
||||||
border-radius: 12px;
|
border-radius: 14px;
|
||||||
background: #1477ff;
|
background: linear-gradient(135deg, #1477ff, #2f8dff);
|
||||||
|
box-shadow: 0 14px 32px rgba(20, 119, 255, 0.18);
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
font-size: 18px;
|
font-size: 19px;
|
||||||
font-weight: 900;
|
font-weight: 900;
|
||||||
}
|
}
|
||||||
|
|
||||||
.brand-row strong {
|
.brand-lockup strong {
|
||||||
display: block;
|
display: block;
|
||||||
margin: 0 0 2px;
|
color: #111827;
|
||||||
color: #171a1f;
|
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-weight: 900;
|
font-weight: 900;
|
||||||
}
|
letter-spacing: 0;
|
||||||
|
|
||||||
.brand-row p {
|
|
||||||
margin: 0;
|
|
||||||
color: #6b7280;
|
|
||||||
font-size: 12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.auth-switch {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: repeat(2, 1fr);
|
|
||||||
gap: 6px;
|
|
||||||
margin-bottom: 12px;
|
|
||||||
padding: 4px;
|
|
||||||
border-radius: 8px;
|
|
||||||
background: #eaf0f8;
|
|
||||||
}
|
|
||||||
|
|
||||||
.auth-switch a {
|
|
||||||
padding: 9px 0;
|
|
||||||
border-radius: 7px;
|
|
||||||
color: #5f6875;
|
|
||||||
text-align: center;
|
|
||||||
font-size: 13px;
|
|
||||||
font-weight: 800;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.auth-switch a.active {
|
|
||||||
background: #ffffff;
|
|
||||||
color: #1477ff;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-section {
|
.form-section {
|
||||||
padding: 14px;
|
width: min(100%, 420px);
|
||||||
background: #fff;
|
margin: 0 auto;
|
||||||
border: 1px solid #edf0f4;
|
|
||||||
border-radius: 8px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.section-heading h2 {
|
.form-section h1 {
|
||||||
margin: 0 0 4px;
|
margin: 0 0 22px;
|
||||||
color: #171a1f;
|
color: #05070a;
|
||||||
font-size: 18px;
|
font-size: 22px;
|
||||||
font-weight: 800;
|
font-weight: 900;
|
||||||
}
|
line-height: 1.2;
|
||||||
|
|
||||||
.section-heading p {
|
|
||||||
margin: 0 0 12px;
|
|
||||||
color: #858c96;
|
|
||||||
font-size: 12px;
|
|
||||||
line-height: 1.5;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.auth-input-row {
|
.auth-input-row {
|
||||||
display: grid;
|
display: flex;
|
||||||
grid-template-columns: 58px 38px minmax(0, 1fr);
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
min-height: 44px;
|
min-height: 48px;
|
||||||
margin-bottom: 8px;
|
margin-bottom: 10px;
|
||||||
padding: 0 12px;
|
padding: 0 16px;
|
||||||
border-radius: 8px;
|
border: 1px solid #e1e5eb;
|
||||||
background: #f8fafc;
|
border-radius: 10px;
|
||||||
|
background: rgba(255, 255, 255, 0.88);
|
||||||
|
box-shadow: 0 10px 24px rgba(15, 23, 42, 0.03);
|
||||||
}
|
}
|
||||||
|
|
||||||
.auth-input-row.code-row {
|
.auth-input-row.code-row {
|
||||||
grid-template-columns: 58px minmax(0, 1fr) 92px;
|
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-label {
|
|
||||||
color: #30343a;
|
|
||||||
font-size: 13px;
|
|
||||||
font-weight: 700;
|
|
||||||
}
|
|
||||||
|
|
||||||
.auth-input-row input {
|
.auth-input-row input {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
border: none;
|
border: none;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
color: #20242a;
|
color: #0f172a;
|
||||||
font-size: 14px;
|
font-size: 16px;
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.auth-input-row input::placeholder {
|
.auth-input-row input::placeholder {
|
||||||
color: #c0c4cc;
|
color: #b6beca;
|
||||||
}
|
|
||||||
|
|
||||||
.field-prefix {
|
|
||||||
color: #1477ff;
|
|
||||||
font-weight: 800;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.code-action {
|
.code-action {
|
||||||
@@ -361,47 +299,99 @@ async function handleLogin() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.code-btn {
|
.code-btn {
|
||||||
|
min-width: 82px;
|
||||||
|
height: 32px;
|
||||||
|
border-color: #1477ff !important;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
|
color: #1477ff !important;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
.assist-row {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
gap: 14px;
|
||||||
|
margin: 14px 0 24px;
|
||||||
|
color: #111827;
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.assist-row span {
|
||||||
|
min-width: 0;
|
||||||
|
color: #1477ff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.assist-row a {
|
||||||
|
flex-shrink: 0;
|
||||||
|
color: #22252b;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.assist-row b {
|
||||||
|
color: #05070a;
|
||||||
|
font-weight: 900;
|
||||||
}
|
}
|
||||||
|
|
||||||
.agreement-row {
|
.agreement-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin: 10px 0 14px;
|
margin: 0 0 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.agreement-row :deep(.van-checkbox__label) {
|
.agreement-row :deep(.van-checkbox__label) {
|
||||||
margin-left: 6px;
|
margin-left: 8px;
|
||||||
color: #333b48;
|
color: #252b36;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
}
|
}
|
||||||
|
|
||||||
.agreement-row :deep(.van-checkbox__label b) {
|
.agreement-row :deep(.van-checkbox__label b) {
|
||||||
color: #1777ff;
|
color: #1477ff;
|
||||||
font-weight: 600;
|
|
||||||
}
|
|
||||||
|
|
||||||
.primary-button {
|
|
||||||
height: 42px;
|
|
||||||
border: none !important;
|
|
||||||
border-radius: 8px !important;
|
|
||||||
background: #1477ff !important;
|
|
||||||
font-size: 15px;
|
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.primary-button {
|
||||||
|
height: 48px;
|
||||||
|
border: none !important;
|
||||||
|
border-radius: 10px !important;
|
||||||
|
background: #1477ff !important;
|
||||||
|
box-shadow: 0 12px 24px rgba(20, 119, 255, 0.18);
|
||||||
|
font-size: 17px;
|
||||||
|
font-weight: 900;
|
||||||
|
}
|
||||||
|
|
||||||
.secondary-entry {
|
.secondary-entry {
|
||||||
display: block;
|
display: grid;
|
||||||
|
min-height: 46px;
|
||||||
margin-top: 12px;
|
margin-top: 12px;
|
||||||
padding: 12px;
|
place-items: center;
|
||||||
border: 1px solid #d7dce3;
|
border: 1px solid #e4e8ee;
|
||||||
border-radius: 8px;
|
border-radius: 10px;
|
||||||
background: #fff;
|
background: rgba(255, 255, 255, 0.82);
|
||||||
color: #1477ff;
|
color: #1477ff;
|
||||||
font-size: 13px;
|
font-size: 15px;
|
||||||
font-weight: 800;
|
font-weight: 900;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-height: 700px) {
|
||||||
|
.auth-body {
|
||||||
|
justify-content: flex-start;
|
||||||
|
padding-top: 52px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.brand-lockup {
|
||||||
|
margin-bottom: 26px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-section h1 {
|
||||||
|
margin-bottom: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.assist-row {
|
||||||
|
margin-bottom: 18px;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -102,55 +102,38 @@ async function handleRegister() {
|
|||||||
<button class="back-btn" type="button" @click="router.back()">
|
<button class="back-btn" type="button" @click="router.back()">
|
||||||
<van-icon name="arrow-left" :size="20" />
|
<van-icon name="arrow-left" :size="20" />
|
||||||
</button>
|
</button>
|
||||||
<h1>注册</h1>
|
|
||||||
<span class="header-spacer"></span>
|
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<section class="auth-body">
|
<section class="auth-body">
|
||||||
<div class="brand-row">
|
<div class="brand-lockup">
|
||||||
<div class="brand-logo">锤</div>
|
<div class="brand-logo">锤</div>
|
||||||
<div>
|
<strong>大锤商行</strong>
|
||||||
<strong>加入大锤商行</strong>
|
|
||||||
<p>注册后即可租号、下单、发布账号</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="auth-switch" aria-label="登录注册切换">
|
|
||||||
<RouterLink to="/m/login">登录</RouterLink>
|
|
||||||
<RouterLink to="/m/register" class="active">注册</RouterLink>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-section">
|
<div class="form-section">
|
||||||
<div class="section-heading">
|
<h1>注册</h1>
|
||||||
<h2>手机号注册</h2>
|
|
||||||
<p>先用短信验证码创建账号,后续再补充实名和收款信息。</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<label class="auth-input-row">
|
<label class="auth-input-row">
|
||||||
<span class="input-label">手机号</span>
|
|
||||||
<span class="field-prefix">+86</span>
|
|
||||||
<input
|
<input
|
||||||
v-model="form.phone"
|
v-model="form.phone"
|
||||||
type="tel"
|
type="tel"
|
||||||
maxlength="11"
|
maxlength="11"
|
||||||
inputmode="tel"
|
inputmode="tel"
|
||||||
placeholder="请输入手机号"
|
placeholder="手机号"
|
||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<label class="auth-input-row code-row">
|
<label class="auth-input-row code-row">
|
||||||
<span class="input-label">验证码</span>
|
|
||||||
<input
|
<input
|
||||||
v-model="form.code"
|
v-model="form.code"
|
||||||
type="text"
|
type="text"
|
||||||
inputmode="numeric"
|
inputmode="numeric"
|
||||||
maxlength="6"
|
maxlength="6"
|
||||||
placeholder="6 位验证码"
|
placeholder="验证码"
|
||||||
/>
|
/>
|
||||||
<span class="code-action">
|
<span class="code-action">
|
||||||
<van-button
|
<van-button
|
||||||
size="small"
|
size="small"
|
||||||
type="primary"
|
|
||||||
plain
|
plain
|
||||||
:disabled="sending || countDown > 0"
|
:disabled="sending || countDown > 0"
|
||||||
:loading="sending"
|
:loading="sending"
|
||||||
@@ -169,14 +152,18 @@ async function handleRegister() {
|
|||||||
</label>
|
</label>
|
||||||
|
|
||||||
<label class="auth-input-row">
|
<label class="auth-input-row">
|
||||||
<span class="input-label">邀请码</span>
|
|
||||||
<input
|
<input
|
||||||
v-model="form.inviteCode"
|
v-model="form.inviteCode"
|
||||||
maxlength="16"
|
maxlength="16"
|
||||||
placeholder="选填,有邀请码填入"
|
placeholder="邀请码(选填)"
|
||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
|
<div class="assist-row">
|
||||||
|
<span>验证码注册</span>
|
||||||
|
<RouterLink to="/m/login">已有账号?<b>去登录</b></RouterLink>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="agreement-row">
|
<div class="agreement-row">
|
||||||
<van-checkbox v-model="agreed" shape="square" icon-size="16px">
|
<van-checkbox v-model="agreed" shape="square" icon-size="16px">
|
||||||
我已阅读并同意《<b>用户协议</b>》和《<b>隐私政策</b>》
|
我已阅读并同意《<b>用户协议</b>》和《<b>隐私政策</b>》
|
||||||
@@ -193,11 +180,11 @@ async function handleRegister() {
|
|||||||
>
|
>
|
||||||
注册并登录
|
注册并登录
|
||||||
</van-button>
|
</van-button>
|
||||||
</div>
|
|
||||||
|
|
||||||
<RouterLink to="/m/login" class="secondary-entry">
|
<RouterLink to="/m/login" class="secondary-entry">
|
||||||
已有账号?去登录
|
返回登录
|
||||||
</RouterLink>
|
</RouterLink>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</main>
|
</main>
|
||||||
</template>
|
</template>
|
||||||
@@ -205,166 +192,116 @@ async function handleRegister() {
|
|||||||
<style scoped>
|
<style scoped>
|
||||||
.mobile-register-shell {
|
.mobile-register-shell {
|
||||||
min-height: 100dvh;
|
min-height: 100dvh;
|
||||||
background: #f4f6f8;
|
background:
|
||||||
color: #151c28;
|
radial-gradient(circle at 50% 12%, rgba(20, 119, 255, 0.1), transparent 34%),
|
||||||
|
linear-gradient(180deg, #f8fbff 0%, #ffffff 70%, #f7fafc 100%);
|
||||||
|
color: #111827;
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-header {
|
.page-header {
|
||||||
position: sticky;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
height: 48px;
|
height: 48px;
|
||||||
padding: 0 12px;
|
|
||||||
background: #fff;
|
|
||||||
border-bottom: 1px solid #eceff3;
|
|
||||||
}
|
|
||||||
|
|
||||||
.page-header h1 {
|
|
||||||
flex: 1;
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-size: 17px;
|
padding: 0 18px;
|
||||||
font-weight: 700;
|
background: transparent;
|
||||||
text-align: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.back-btn {
|
.back-btn {
|
||||||
display: grid;
|
display: grid;
|
||||||
width: 36px;
|
width: 34px;
|
||||||
height: 36px;
|
height: 34px;
|
||||||
place-items: center;
|
place-items: center;
|
||||||
border: none;
|
border: none;
|
||||||
|
border-radius: 999px;
|
||||||
background: none;
|
background: none;
|
||||||
color: #25282d;
|
color: #111827;
|
||||||
}
|
|
||||||
|
|
||||||
.header-spacer {
|
|
||||||
width: 36px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.auth-body {
|
.auth-body {
|
||||||
padding: 14px;
|
box-sizing: border-box;
|
||||||
|
display: flex;
|
||||||
|
min-height: 100dvh;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 50px 34px 22px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.brand-row {
|
.brand-lockup {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 12px;
|
gap: 8px;
|
||||||
padding: 8px 2px 14px;
|
margin: 0 auto clamp(24px, 4vh, 38px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.brand-logo {
|
.brand-logo {
|
||||||
display: grid;
|
display: grid;
|
||||||
width: 42px;
|
width: 46px;
|
||||||
height: 42px;
|
height: 46px;
|
||||||
place-items: center;
|
place-items: center;
|
||||||
border-radius: 12px;
|
border-radius: 14px;
|
||||||
background: #1477ff;
|
background: linear-gradient(135deg, #1477ff, #2f8dff);
|
||||||
|
box-shadow: 0 14px 32px rgba(20, 119, 255, 0.18);
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
font-size: 18px;
|
font-size: 19px;
|
||||||
font-weight: 900;
|
font-weight: 900;
|
||||||
}
|
}
|
||||||
|
|
||||||
.brand-row strong {
|
.brand-lockup strong {
|
||||||
display: block;
|
display: block;
|
||||||
margin: 0 0 2px;
|
color: #111827;
|
||||||
color: #171a1f;
|
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-weight: 900;
|
font-weight: 900;
|
||||||
}
|
letter-spacing: 0;
|
||||||
|
|
||||||
.brand-row p {
|
|
||||||
margin: 0;
|
|
||||||
color: #6b7280;
|
|
||||||
font-size: 12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.auth-switch {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: repeat(2, 1fr);
|
|
||||||
gap: 6px;
|
|
||||||
margin-bottom: 12px;
|
|
||||||
padding: 4px;
|
|
||||||
border-radius: 8px;
|
|
||||||
background: #eaf0f8;
|
|
||||||
}
|
|
||||||
|
|
||||||
.auth-switch a {
|
|
||||||
padding: 9px 0;
|
|
||||||
border-radius: 7px;
|
|
||||||
color: #5f6875;
|
|
||||||
text-align: center;
|
|
||||||
font-size: 13px;
|
|
||||||
font-weight: 800;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.auth-switch a.active {
|
|
||||||
background: #ffffff;
|
|
||||||
color: #1477ff;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-section {
|
.form-section {
|
||||||
padding: 14px;
|
width: min(100%, 420px);
|
||||||
background: #fff;
|
margin: 0 auto;
|
||||||
border: 1px solid #edf0f4;
|
|
||||||
border-radius: 8px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.section-heading h2 {
|
.form-section h1 {
|
||||||
margin: 0 0 4px;
|
margin: 0 0 20px;
|
||||||
color: #171a1f;
|
color: #05070a;
|
||||||
font-size: 18px;
|
font-size: 22px;
|
||||||
font-weight: 800;
|
font-weight: 900;
|
||||||
}
|
line-height: 1.2;
|
||||||
|
|
||||||
.section-heading p {
|
|
||||||
margin: 0 0 12px;
|
|
||||||
color: #858c96;
|
|
||||||
font-size: 12px;
|
|
||||||
line-height: 1.5;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.auth-input-row {
|
.auth-input-row {
|
||||||
display: grid;
|
display: flex;
|
||||||
grid-template-columns: 58px 38px minmax(0, 1fr);
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
min-height: 44px;
|
min-height: 48px;
|
||||||
margin-bottom: 8px;
|
margin-bottom: 10px;
|
||||||
padding: 0 12px;
|
padding: 0 16px;
|
||||||
border-radius: 8px;
|
border: 1px solid #e1e5eb;
|
||||||
background: #f8fafc;
|
border-radius: 10px;
|
||||||
|
background: rgba(255, 255, 255, 0.88);
|
||||||
|
box-shadow: 0 10px 24px rgba(15, 23, 42, 0.03);
|
||||||
}
|
}
|
||||||
|
|
||||||
.auth-input-row.code-row {
|
.auth-input-row.code-row {
|
||||||
grid-template-columns: 58px minmax(0, 1fr) 92px;
|
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-label {
|
|
||||||
color: #30343a;
|
|
||||||
font-size: 13px;
|
|
||||||
font-weight: 700;
|
|
||||||
}
|
|
||||||
|
|
||||||
.auth-input-row input {
|
.auth-input-row input {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
border: none;
|
border: none;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
color: #20242a;
|
color: #0f172a;
|
||||||
font-size: 14px;
|
font-size: 16px;
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.auth-input-row input::placeholder {
|
.auth-input-row input::placeholder {
|
||||||
color: #c0c4cc;
|
color: #b6beca;
|
||||||
}
|
|
||||||
|
|
||||||
.field-prefix {
|
|
||||||
color: #1477ff;
|
|
||||||
font-weight: 800;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.code-action {
|
.code-action {
|
||||||
@@ -373,47 +310,99 @@ async function handleRegister() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.code-btn {
|
.code-btn {
|
||||||
|
min-width: 82px;
|
||||||
|
height: 32px;
|
||||||
|
border-color: #1477ff !important;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
|
color: #1477ff !important;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
.assist-row {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
gap: 14px;
|
||||||
|
margin: 12px 0 18px;
|
||||||
|
color: #111827;
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.assist-row span {
|
||||||
|
min-width: 0;
|
||||||
|
color: #1477ff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.assist-row a {
|
||||||
|
flex-shrink: 0;
|
||||||
|
color: #22252b;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.assist-row b {
|
||||||
|
color: #05070a;
|
||||||
|
font-weight: 900;
|
||||||
}
|
}
|
||||||
|
|
||||||
.agreement-row {
|
.agreement-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin: 10px 0 14px;
|
margin: 0 0 18px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.agreement-row :deep(.van-checkbox__label) {
|
.agreement-row :deep(.van-checkbox__label) {
|
||||||
margin-left: 6px;
|
margin-left: 8px;
|
||||||
color: #333b48;
|
color: #252b36;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
}
|
}
|
||||||
|
|
||||||
.agreement-row :deep(.van-checkbox__label b) {
|
.agreement-row :deep(.van-checkbox__label b) {
|
||||||
color: #1777ff;
|
color: #1477ff;
|
||||||
font-weight: 600;
|
|
||||||
}
|
|
||||||
|
|
||||||
.primary-button {
|
|
||||||
height: 42px;
|
|
||||||
border: none !important;
|
|
||||||
border-radius: 8px !important;
|
|
||||||
background: #1477ff !important;
|
|
||||||
font-size: 15px;
|
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.primary-button {
|
||||||
|
height: 48px;
|
||||||
|
border: none !important;
|
||||||
|
border-radius: 10px !important;
|
||||||
|
background: #1477ff !important;
|
||||||
|
box-shadow: 0 12px 24px rgba(20, 119, 255, 0.18);
|
||||||
|
font-size: 17px;
|
||||||
|
font-weight: 900;
|
||||||
|
}
|
||||||
|
|
||||||
.secondary-entry {
|
.secondary-entry {
|
||||||
display: block;
|
display: grid;
|
||||||
margin-top: 12px;
|
min-height: 44px;
|
||||||
padding: 12px;
|
margin-top: 10px;
|
||||||
border: 1px solid #d7dce3;
|
place-items: center;
|
||||||
border-radius: 8px;
|
border: 1px solid #e4e8ee;
|
||||||
background: #fff;
|
border-radius: 10px;
|
||||||
|
background: rgba(255, 255, 255, 0.82);
|
||||||
color: #1477ff;
|
color: #1477ff;
|
||||||
font-size: 13px;
|
font-size: 15px;
|
||||||
font-weight: 800;
|
font-weight: 900;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-height: 760px) {
|
||||||
|
.auth-body {
|
||||||
|
justify-content: flex-start;
|
||||||
|
padding-top: 48px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.brand-lockup {
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-section h1 {
|
||||||
|
margin-bottom: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.assist-row {
|
||||||
|
margin-bottom: 14px;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user