优化
This commit is contained in:
+67
-40
@@ -1,56 +1,71 @@
|
||||
@import './foundation.css';
|
||||
@import './shell.css';
|
||||
|
||||
.auth-page { min-height: 100vh; background: #eef3f3; }
|
||||
.auth-header { display: flex; height: 72px; align-items: center; justify-content: space-between; padding: 0 clamp(24px, 6vw, 90px); border-bottom: 1px solid var(--border); background: #fff; color: var(--muted); font-size: 13px; }
|
||||
.auth-page { min-height: 100vh; background: #edf2f4; color: var(--navy); }
|
||||
.auth-header { display: flex; height: 72px; align-items: center; justify-content: space-between; padding: 0 clamp(24px, 6vw, 90px); border-bottom: 1px solid #dfe6e8; background: #fff; color: #59646d; font-size: 13px; }
|
||||
.auth-brand { display: flex; min-width: 0; align-items: center; color: var(--navy); text-decoration: none; }
|
||||
.auth-brand-logo { display: block; width: 158px; height: 56px; object-fit: contain; object-position: left center; }
|
||||
.auth-header a { color: var(--primary); text-decoration: none; }
|
||||
.auth-main { display: grid; min-height: calc(100vh - 72px); grid-template-columns: 1fr 440px; align-items: center; gap: clamp(60px, 10vw, 150px); width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 50px 0; }
|
||||
.auth-kicker, .section-label { color: var(--primary); font-size: 11px; font-weight: 750; letter-spacing: .13em; }
|
||||
.auth-copy h1 { margin: 15px 0 20px; color: var(--navy); font-size: clamp(38px, 4.5vw, 62px); line-height: 1.14; letter-spacing: -.04em; }
|
||||
.auth-copy > p { max-width: 520px; color: var(--muted); font-size: 16px; line-height: 1.8; }
|
||||
.auth-facts { display: flex; gap: 8px; margin-top: 32px; flex-wrap: wrap; }
|
||||
.auth-facts span { padding: 8px 12px; border: 1px solid #cbdad7; background: rgba(255,255,255,.7); color: #40534f; font-size: 12px; }
|
||||
.auth-card { padding: 38px; border: 1px solid var(--border); background: #fff; box-shadow: 0 14px 36px rgba(23,50,77,.08); }
|
||||
.auth-card h2 { margin: 0 0 8px; font-size: 26px; }
|
||||
.auth-card > p { margin: 0 0 28px; color: var(--muted); }
|
||||
.auth-header-action { display: flex; min-height: 44px; align-items: center; gap: 8px; }
|
||||
.auth-header-action a { display: inline-flex; min-height: 44px; align-items: center; color: #155eaa; font-weight: 650; text-decoration: none; }
|
||||
.auth-header-action a:hover { text-decoration: underline; }
|
||||
.auth-header-action a:focus-visible, .auth-brand:focus-visible { outline: 2px solid #155eaa; outline-offset: 3px; }
|
||||
.auth-stage { display: grid; min-height: calc(100vh - 72px); padding: clamp(28px, 5vw, 64px) 24px; place-items: center; }
|
||||
.auth-panel { display: grid; width: min(1180px, 100%); min-height: 640px; grid-template-columns: minmax(360px, .95fr) minmax(440px, 1.05fr); overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 24px 64px rgba(20, 42, 65, .16); }
|
||||
.auth-panel--register { width: min(1280px, 100%); min-height: 820px; grid-template-columns: minmax(340px, .72fr) minmax(600px, 1.28fr); }
|
||||
.auth-visual { position: relative; min-height: 100%; overflow: hidden; color: #fff; }
|
||||
.auth-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% center; transform: scale(1.01); }
|
||||
.auth-visual-shade { position: absolute; inset: 0; background: linear-gradient(155deg, rgba(7, 23, 40, .93) 0%, rgba(13, 71, 117, .82) 58%, rgba(10, 93, 92, .74) 100%); }
|
||||
.auth-visual-content { position: relative; z-index: 1; display: flex; height: 100%; min-height: inherit; flex-direction: column; justify-content: space-between; padding: clamp(42px, 5vw, 72px); }
|
||||
.auth-panel--register .auth-visual-content { padding: 48px 42px; }
|
||||
.auth-visual h1 { max-width: 12ch; margin: 0 0 18px; color: #fff; font-size: clamp(31px, 3.2vw, 46px); line-height: 1.18; letter-spacing: -.025em; }
|
||||
.auth-panel--register .auth-visual h1 { max-width: 10ch; font-size: clamp(30px, 2.8vw, 40px); }
|
||||
.auth-visual p { max-width: 32ch; margin: 0; color: #dbeaf0; font-size: 15px; line-height: 1.8; }
|
||||
.auth-visual ul { display: flex; margin: 48px 0 0; padding: 0; flex-direction: column; gap: 16px; list-style: none; }
|
||||
.auth-visual li { display: flex; align-items: center; gap: 10px; color: #f4fbfb; font-size: 14px; font-weight: 600; }
|
||||
.auth-visual li svg { flex: 0 0 auto; color: #64c877; }
|
||||
.auth-form-panel { display: flex; min-width: 0; align-items: center; padding: clamp(40px, 5vw, 70px); background: #fff; }
|
||||
.auth-panel--register .auth-form-panel { align-items: stretch; padding: 44px 48px; }
|
||||
.auth-form-content { width: 100%; margin: auto; }
|
||||
.auth-form-content--login { max-width: 420px; }
|
||||
.auth-form-content--register { max-width: 760px; }
|
||||
.auth-form-heading { margin-bottom: 26px; }
|
||||
.auth-form-heading h1, .auth-form-heading h2 { margin: 0 0 9px; color: #18243a; font-size: 30px; line-height: 1.3; letter-spacing: -.02em; }
|
||||
.auth-form-heading p { margin: 0; color: #66717a; font-size: 14px; line-height: 1.7; }
|
||||
.section-label { color: var(--primary); font-size: 11px; font-weight: 750; letter-spacing: .13em; }
|
||||
.auth-account-note { margin: -8px 0 24px; padding: 12px 14px; background: #edf6f4; color: #385b57; font-size: 12px; line-height: 1.65; }
|
||||
.auth-form-options { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: -2px 0 18px; }
|
||||
.auth-form-options button { min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--primary); cursor: pointer; }
|
||||
.auth-form-options button { min-height: 44px; padding: 0; border: 0; background: transparent; color: #155eaa; cursor: pointer; }
|
||||
.auth-form-options button:hover { text-decoration: underline; }
|
||||
.auth-form-options button:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
|
||||
.auth-submit { width: 100%; }
|
||||
.auth-form-options button:focus-visible { outline: 2px solid #155eaa; outline-offset: 3px; }
|
||||
.auth-submit { width: 100%; min-height: 46px; }
|
||||
.auth-submit span { display: flex; align-items: center; gap: 7px; }
|
||||
|
||||
.register-page { min-height: 100vh; background: #f5f7f8; }
|
||||
.register-header { display: flex; height: 68px; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 5vw, 72px); border-bottom: 1px solid var(--border); background: #fff; }
|
||||
.register-header > a { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; text-decoration: none; }
|
||||
.register-main { width: min(920px, calc(100% - 32px)); margin: 36px auto; padding: 34px 38px; border: 1px solid var(--border); background: #fff; }
|
||||
.register-title { display: flex; align-items: center; gap: 14px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
|
||||
.register-title > div { display: grid; width: 44px; height: 44px; place-items: center; background: #e7f3f1; color: var(--primary); }
|
||||
.register-title h1 { margin: 0 0 5px; font-size: 23px; }
|
||||
.register-title p { margin: 0; color: var(--muted); font-size: 12px; }
|
||||
.register-form { margin-top: 28px; }
|
||||
.form-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
|
||||
.register-form { margin-top: 4px; }
|
||||
.register-section { padding: 22px 0 2px; border-top: 1px solid #e5eaec; }
|
||||
.register-section:first-child { padding-top: 0; border-top: 0; }
|
||||
.register-section h2 { margin: 0 0 16px; color: #26364a; font-size: 15px; line-height: 1.4; }
|
||||
.register-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
|
||||
.register-form-full { grid-column: 1 / -1; }
|
||||
.register-select { width: 100%; }
|
||||
.agreement-item { margin-bottom: 8px; }
|
||||
.agreement-control { display: flex; min-height: 44px; align-items: center; gap: 4px; flex-wrap: wrap; color: var(--muted); }
|
||||
.agreement-control { display: flex; min-height: 44px; align-items: center; gap: 4px; flex-wrap: wrap; color: #59646d; }
|
||||
.agreement-item .el-checkbox { min-height: 44px; white-space: normal; }
|
||||
.agreement-required { margin-right: 2px; color: var(--el-color-danger); }
|
||||
.agreement-item a { color: var(--primary); text-decoration: none; }
|
||||
.agreement-item a { color: #155eaa; text-decoration: none; }
|
||||
.agreement-item a:hover { text-decoration: underline; }
|
||||
.agreement-item a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
|
||||
.register-security-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
|
||||
.register-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
|
||||
.registration-result { display: flex; min-height: 470px; align-items: center; justify-content: center; flex-direction: column; color: var(--primary); text-align: center; }
|
||||
.agreement-item a:focus-visible { outline: 2px solid #155eaa; outline-offset: 2px; }
|
||||
.register-security-note { margin: 0; color: #66717a; font-size: 12px; line-height: 1.65; }
|
||||
.register-submit { width: 100%; min-height: 48px; margin-top: 22px; --el-button-bg-color: #2e7d32; --el-button-border-color: #2e7d32; --el-button-hover-bg-color: #256b2a; --el-button-hover-border-color: #256b2a; }
|
||||
.registration-result { display: flex; min-height: 640px; align-items: center; justify-content: center; flex-direction: column; color: #2e7d32; text-align: center; }
|
||||
.registration-result h1 { margin: 18px 0 8px; color: var(--navy); font-size: 26px; }
|
||||
.registration-result > p { max-width: 600px; margin: 0; color: var(--muted); line-height: 1.7; overflow-wrap: anywhere; }
|
||||
.registration-result > p { max-width: 600px; margin: 0; color: #66717a; line-height: 1.7; overflow-wrap: anywhere; }
|
||||
.registration-result > p strong { color: var(--navy); }
|
||||
.registration-result dl { display: grid; width: min(620px, 100%); grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 28px 0 0; border: 1px solid var(--border); color: var(--navy); text-align: left; }
|
||||
.registration-result dl { display: grid; width: min(620px, 100%); grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 28px 0 0; border: 1px solid #e0e6e8; color: var(--navy); text-align: left; }
|
||||
.registration-result dl div { min-width: 0; padding: 14px 16px; border-bottom: 1px solid var(--border); }
|
||||
.registration-result dl div:nth-child(odd) { border-right: 1px solid var(--border); }
|
||||
.registration-result dt { color: var(--muted); font-size: 11px; }
|
||||
.registration-result dd { margin: 5px 0 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 650; }
|
||||
.registration-next-step { display: flex; width: min(620px, 100%); flex-direction: column; gap: 5px; margin-top: 18px; padding: 14px 16px; border: 1px solid #d9cfad; background: #fff9e9; color: var(--muted); font-size: 12px; line-height: 1.65; text-align: left; }
|
||||
.registration-next-step { display: flex; width: min(620px, 100%); flex-direction: column; gap: 5px; margin-top: 18px; padding: 14px 16px; border: 1px solid #d9cfad; background: #fff9e9; color: #66717a; font-size: 12px; line-height: 1.65; text-align: left; }
|
||||
.registration-next-step strong { color: var(--navy); font-size: 13px; }
|
||||
.registration-result-actions { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
|
||||
|
||||
@@ -114,8 +129,12 @@
|
||||
.el-button--primary { --el-button-bg-color: var(--primary); --el-button-border-color: var(--primary); --el-button-hover-bg-color: var(--primary-dark); --el-button-hover-border-color: var(--primary-dark); }
|
||||
|
||||
@media (max-width: 960px) {
|
||||
.auth-main { grid-template-columns: 1fr; width: min(520px, calc(100% - 32px)); }
|
||||
.auth-copy { display: none; }
|
||||
.auth-stage { padding: 32px 20px; }
|
||||
.auth-panel { width: min(680px, 100%); min-height: 0; grid-template-columns: 1fr; }
|
||||
.auth-panel--login { width: min(520px, 100%); }
|
||||
.auth-visual { display: none; }
|
||||
.auth-form-panel, .auth-panel--register .auth-form-panel { padding: 44px; }
|
||||
.registration-result { min-height: 560px; }
|
||||
.client-content-grid { grid-template-columns: 1fr; }
|
||||
}
|
||||
@media (max-width: 720px) {
|
||||
@@ -134,10 +153,18 @@
|
||||
.dashboard-load-error .el-button { width: 100%; min-height: 44px; }
|
||||
.client-stats { grid-template-columns: 1fr; }
|
||||
.quick-order-band { align-items: flex-start; flex-direction: column; }
|
||||
.form-grid { grid-template-columns: 1fr; }
|
||||
.auth-header { padding: 0 18px; }
|
||||
.auth-header > div:last-child { display: none; }
|
||||
.auth-card, .register-main { padding: 26px 20px; }
|
||||
.auth-header { height: 64px; padding: 0 18px; }
|
||||
.auth-brand-logo { width: 132px; height: 50px; }
|
||||
.auth-header-action > span { display: none; }
|
||||
.auth-stage { min-height: calc(100vh - 64px); padding: 0; background: #fff; place-items: start center; }
|
||||
.auth-panel, .auth-panel--register { width: 100%; border-radius: 0; box-shadow: none; }
|
||||
.auth-form-panel, .auth-panel--register .auth-form-panel { padding: 34px 20px 44px; }
|
||||
.auth-form-heading { margin-bottom: 22px; }
|
||||
.auth-form-heading h1, .auth-form-heading h2 { font-size: 26px; }
|
||||
.register-form-grid { grid-template-columns: 1fr; }
|
||||
.register-form-full { grid-column: auto; }
|
||||
.register-section { padding-top: 20px; }
|
||||
.registration-result { min-height: 0; padding: 34px 0 12px; }
|
||||
.registration-result dl { grid-template-columns: 1fr; }
|
||||
.registration-result dl div:nth-child(odd) { border-right: 0; }
|
||||
.registration-result-actions { width: 100%; }
|
||||
|
||||
Reference in New Issue
Block a user