Files
xin-procurement-weapp/src/pages/login/index.less
T
2026-08-27 14:25:03 +08:00

232 lines
3.8 KiB
Plaintext

/* ========================================
登录页面
======================================== */
.login-page {
min-height: 100vh;
background: #fff;
}
/* ========== 自定义导航栏 ========== */
.login-navbar {
background: #fff;
position: sticky;
top: 0;
z-index: 100;
.navbar-inner {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 16px;
position: relative;
}
.navbar-back {
width: 60px;
height: 60px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
.back-arrow {
font-size: 48px;
color: #323233;
line-height: 1;
font-weight: 300;
}
}
.navbar-title {
font-size: 32px;
font-weight: 500;
color: #323233;
position: absolute;
left: 50%;
transform: translateX(-50%);
}
.navbar-placeholder {
width: 60px;
height: 60px;
flex-shrink: 0;
}
}
/* ========== 内容区域 ========== */
.login-content {
display: flex;
flex-direction: column;
align-items: center;
padding: 80px 60px 0;
}
/* ========== 品牌区域 ========== */
.login-brand {
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 40px;
.logo-wrapper {
width: 160px;
height: 160px;
border-radius: 50%;
background: linear-gradient(160deg, #ee0a24 0%, #ff4d4f 100%);
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 24px;
box-shadow: 0 8px 32px rgba(238, 10, 36, 0.3);
}
.logo-text {
font-size: 80px;
color: #fff;
font-weight: 700;
}
.app-name {
font-size: 44px;
font-weight: 600;
color: #323233;
margin-bottom: 12px;
}
.app-slogan {
font-size: 28px;
color: #969799;
}
}
/* ========== 登录表单 ========== */
.login-form {
width: 100%;
background: #f7f8fa;
border-radius: 24px;
padding: 0 32px;
margin-bottom: 60px;
}
.form-item {
display: flex;
align-items: center;
height: 112px;
border-bottom: 1px solid #ebedf0;
&:last-child {
border-bottom: none;
}
}
.form-label {
width: 120px;
font-size: 30px;
color: #323233;
flex-shrink: 0;
}
.form-input {
flex: 1;
height: 100%;
font-size: 30px;
color: #323233;
}
.form-input-placeholder {
color: #c8c9cc;
}
/* ========== 登录操作区 ========== */
.login-actions {
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
}
.login-btn {
width: 100%;
height: 96px;
line-height: 96px;
background: linear-gradient(160deg, #ee0a24 0%, #ff4d4f 100%);
color: #fff;
font-size: 34px;
font-weight: 500;
border: none;
border-radius: 48px;
text-align: center;
padding: 0;
box-shadow: 0 6px 24px rgba(238, 10, 36, 0.35);
transition: opacity 0.2s;
/* 重置微信 Button 默认样式 */
&::after {
border: none;
}
}
.login-btn--loading {
opacity: 0.75;
}
/* ========== 客服提示 ========== */
.login-tip {
display: flex;
align-items: center;
justify-content: center;
margin-top: 32px;
.tip-text {
font-size: 26px;
color: #969799;
}
}
/* ========== 协议勾选区 ========== */
.login-agreement {
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
margin-top: 32px;
line-height: 1.6;
.agree-checkbox {
width: 32px;
height: 32px;
border-radius: 50%;
border: 2px solid #c8c9cc;
margin-right: 12px;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
transition: all 0.2s;
&--checked {
background: #ee0a24;
border-color: #ee0a24;
}
}
.agree-checkbox-tick {
font-size: 22px;
color: #fff;
line-height: 1;
font-weight: 700;
}
.agree-text {
font-size: 24px;
color: #969799;
}
.agree-link {
font-size: 24px;
color: #ee0a24;
}
}