@@ -932,7 +877,7 @@ const RegisterForm = () => {
okButtonProps={{
loading: wechatCodeSubmitLoading,
}}
- className='wechat-login-modal'
+ className='wechat-login-modal auth-login-modal'
>
{/* 移动端提示 */}
{isMobileView && !isInWeChat && (
@@ -995,7 +940,6 @@ const RegisterForm = () => {
onChange={(value) =>
handleChange('wechat_verification_code', value)
}
- className='!rounded-xl'
/>
@@ -1089,7 +1033,7 @@ const RegisterForm = () => {
return (
diff --git a/src/components/auth/TwoFAVerification.jsx b/src/components/auth/TwoFAVerification.jsx
index 938ce5d1..959f144c 100644
--- a/src/components/auth/TwoFAVerification.jsx
+++ b/src/components/auth/TwoFAVerification.jsx
@@ -88,7 +88,6 @@ const TwoFAVerification = ({ onSuccess, onBack, isModal = false }) => {
value={verificationCode}
onChange={setVerificationCode}
onKeyPress={handleKeyPress}
- size='large'
style={{ marginBottom: 16 }}
autoFocus
/>
@@ -98,7 +97,6 @@ const TwoFAVerification = ({ onSuccess, onBack, isModal = false }) => {
type='primary'
loading={loading}
block
- size='large'
style={{ marginBottom: 16 }}
>
{t('验证并登录')}
@@ -115,7 +113,8 @@ const TwoFAVerification = ({ onSuccess, onBack, isModal = false }) => {
setUseBackupCode(!useBackupCode);
setVerificationCode('');
}}
- style={{ marginRight: 16, color: '#1890ff', padding: 0 }}
+ style={{ marginRight: 16, padding: 0 }}
+ className='!text-brand'
>
{useBackupCode ? t('使用认证器验证码') : t('使用备用码')}
@@ -125,7 +124,8 @@ const TwoFAVerification = ({ onSuccess, onBack, isModal = false }) => {
theme='borderless'
type='tertiary'
onClick={onBack}
- style={{ color: '#1890ff', padding: 0 }}
+ style={{ padding: 0 }}
+ className='!text-brand'
>
{t('返回登录')}
@@ -177,7 +177,6 @@ const TwoFAVerification = ({ onSuccess, onBack, isModal = false }) => {
value={verificationCode}
onChange={setVerificationCode}
onKeyPress={handleKeyPress}
- size='large'
style={{ marginBottom: 16 }}
autoFocus
/>
@@ -187,7 +186,6 @@ const TwoFAVerification = ({ onSuccess, onBack, isModal = false }) => {
type='primary'
loading={loading}
block
- size='large'
style={{ marginBottom: 16 }}
>
{t('验证并登录')}
@@ -204,7 +202,8 @@ const TwoFAVerification = ({ onSuccess, onBack, isModal = false }) => {
setUseBackupCode(!useBackupCode);
setVerificationCode('');
}}
- style={{ marginRight: 16, color: '#1890ff', padding: 0 }}
+ style={{ marginRight: 16, padding: 0 }}
+ className='!text-brand'
>
{useBackupCode ? t('使用认证器验证码') : t('使用备用码')}
@@ -214,7 +213,8 @@ const TwoFAVerification = ({ onSuccess, onBack, isModal = false }) => {
theme='borderless'
type='tertiary'
onClick={onBack}
- style={{ color: '#1890ff', padding: 0 }}
+ style={{ padding: 0 }}
+ className='!text-brand'
>
{t('返回登录')}
diff --git a/src/components/layout/PageLayout.jsx b/src/components/layout/PageLayout.jsx
index 4bf74090..24c1bd0e 100644
--- a/src/components/layout/PageLayout.jsx
+++ b/src/components/layout/PageLayout.jsx
@@ -346,9 +346,10 @@ const PageLayout = () => {
{
{selfRegisterEnabled && (
<>
-
-
- {t('还没有企业?')}
-
-
+ {t('还没有企业?')}
{
{step === 2 && (
{
type='info'
closeIcon={null}
description={t('当前未开放企业自助注册,请联系平台管理员开通企业。')}
- className='mb-4'
+ className='auth-login-banner'
/>
- navigate('/org/login')}
- >
+ navigate('/org/login')}>
{t('返回企业登录')}
@@ -209,30 +205,19 @@ const OrgRegister = () => {
/>
) : (
<>
-
{
/>
{
{emailVerifyEnabled && (
{
)}
-
+
@@ -318,14 +298,9 @@ const OrgRegister = () => {
-
-
- {t('已有企业?')}
-
-
+
{t('已有企业?')}
navigate('/org/login')}
@@ -340,7 +315,7 @@ const OrgRegister = () => {
return (
diff --git a/src/styles/prototype.css b/src/styles/prototype.css
index f00c2bed..9b59ff7a 100644
--- a/src/styles/prototype.css
+++ b/src/styles/prototype.css
@@ -340,7 +340,7 @@ html.dark body[data-ui-scope='admin'] {
.ui-header-navigation .ui-header-nav-item.nav-item-active::after {
border-bottom-color: var(--ui-color-primary);
}
-/* Other auth pages retain their continuous background. Login uses the standard header. */
+/* 客户端授权页保留透出背景的顶栏;登录 / 注册 / 找回密码统一使用标准登录顶栏。 */
body[data-ui-scope='admin'] .auth-layout-header,
body[data-ui-scope='admin'] .auth-layout-header header {
background: transparent;
@@ -365,8 +365,9 @@ body[data-ui-scope='admin'] .auth-layout-header header {
transform: none;
transition: none;
}
+/* 字段节奏统一 24px:与必填字段预留的一行报错高度一致,报错出现时布局不跳动 */
.auth-login-page .ant-form-item {
- margin-bottom: 16px;
+ margin-bottom: 24px;
}
/* Zero margin avoids Ant Form's error compensation; control height reserves one error line. */
.auth-login-page .auth-login-required-field {
@@ -374,7 +375,7 @@ body[data-ui-scope='admin'] .auth-layout-header header {
padding-bottom: 0;
}
.auth-login-page .auth-login-required-field .ant-form-item-control {
- min-height: 58px;
+ min-height: calc(var(--auth-control-height) + 24px);
}
.auth-login-page .ant-form-item-label {
padding-bottom: 6px;
@@ -390,7 +391,8 @@ body[data-ui-scope='admin'] .auth-layout-header header {
gap: 12px;
}
.auth-login-fields .ant-form-item {
- margin-bottom: 0;
+ /* 与 gap 12px 叠加后字段节奏同为 24px,和其他认证表单一致 */
+ margin-bottom: 12px;
}
.auth-login-page .auth-login-actions {
display: flex;
@@ -428,9 +430,136 @@ body[data-ui-scope='admin'] .auth-layout-header header {
color: color-mix(in srgb, var(--ui-color-text-1) 50%, black);
}
.auth-login-page .auth-login-register {
- margin-top: 12px;
+ margin-top: 16px;
line-height: 20px;
}
+/*
+ * 认证页统一视觉:/login、/org/login、/org/:slug/login、/register、/org/register、
+ * /reset、/user/reset 及其弹窗(两步验证、微信验证码)。
+ * 控件统一 36px 高、8px 圆角;间距统一 4 的倍数;去掉光晕 / 漂移光斑 / 星标等装饰。
+ */
+.auth-login-page,
+.auth-login-modal {
+ --auth-control-height: 36px;
+}
+.auth-login-page .login-card-glow,
+.auth-login-page .login-card-halo,
+.auth-login-page .login-glass-aurora,
+.auth-login-page .auth-card-logo-halo,
+.auth-login-page .auth-card-sparkle {
+ display: none;
+}
+.auth-login-page .auth-card-header {
+ margin-bottom: 24px;
+}
+.auth-login-page .auth-card-logo {
+ margin-bottom: 12px;
+}
+.auth-login-page .auth-card-logo-box {
+ box-shadow: none;
+ border: 1px solid var(--ui-color-border-light);
+}
+.auth-login-page .auth-card-title {
+ font-size: 20px;
+ line-height: 28px;
+ font-weight: 650;
+}
+.auth-login-page .auth-card-subtitle {
+ margin-top: 2px;
+ font-size: 12px;
+ line-height: 18px;
+}
+/* 输入框 / 密码框 / 下拉(含 AutoComplete)统一 36px */
+.auth-login-page .ant-input-affix-wrapper,
+.auth-login-page input.ant-input-outlined,
+.auth-login-modal .ant-input-affix-wrapper,
+.auth-login-modal input.ant-input-outlined {
+ height: var(--auth-control-height);
+ padding-block: 0;
+ border-radius: var(--ui-border-radius-medium);
+}
+.auth-login-page .ant-select-single,
+.auth-login-page .ant-select-single .ant-select-selector {
+ height: var(--auth-control-height);
+ border-radius: var(--ui-border-radius-medium);
+}
+/* 主按钮 / 整行按钮 / 弹窗底部按钮统一 36px */
+.auth-login-page .ant-btn-block,
+.auth-login-modal .ant-btn-block,
+.auth-login-modal .ant-modal-footer .ant-btn {
+ height: var(--auth-control-height);
+ border-radius: var(--ui-border-radius-medium);
+}
+.auth-login-page .auth-login-submit {
+ gap: 6px;
+}
+.auth-login-page .auth-oauth-button {
+ font-weight: 500;
+}
+.auth-login-page .auth-oauth-icon {
+ display: inline-flex;
+ width: 16px;
+ height: 16px;
+ align-items: center;
+ justify-content: center;
+}
+.auth-login-page .auth-oauth-icon svg {
+ max-width: 16px;
+ max-height: 16px;
+}
+/* 第三方登录列表:8px 行距,分隔线上下对称 */
+.auth-login-page .auth-option-list {
+ display: flex;
+ flex-direction: column;
+ gap: 8px;
+}
+.auth-login-page .auth-option-list .auth-divider {
+ margin-block: 4px;
+}
+.auth-divider {
+ display: flex;
+ align-items: center;
+ gap: 12px;
+ margin-block: 16px;
+ font-size: 12px;
+ line-height: 18px;
+ color: var(--ui-color-text-2);
+}
+.auth-divider-line {
+ flex: 1;
+ height: 1px;
+ background: var(--ui-color-border-light);
+}
+.auth-login-fields .auth-divider {
+ margin-block: 4px 0;
+}
+.auth-login-page .auth-login-agreement {
+ margin-top: 16px;
+}
+.auth-login-page .auth-login-banner {
+ margin-bottom: 16px;
+}
+.auth-login-page .auth-login-security {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ gap: 6px;
+ margin-top: 12px;
+ font-size: 12px;
+ line-height: 18px;
+ color: var(--ui-color-text-2);
+}
+.auth-modal-title-icon {
+ display: inline-flex;
+ width: 36px;
+ height: 36px;
+ flex-shrink: 0;
+ align-items: center;
+ justify-content: center;
+ border-radius: var(--ui-border-radius-medium);
+ background: var(--ui-color-highlight-bg);
+ color: var(--ui-color-focus-border);
+}
body[data-ui-scope='admin'] [data-page-background] {
display: none;
}