wms-template/login/login.css
2024-12-14 15:24:16 +08:00

270 lines
4.6 KiB
CSS

body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
line-height: 1.6;
font-size: 14px;
color: #515a61;
}
/*主页*/
.account {
width: 100%;
margin: 0 auto;
}
.account-container {
width: 100%;
min-height: 100vh;
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
padding: 20px;
box-sizing: border-box;
background-image: url("./imgs/login-bg.png");
background-repeat: no-repeat;
background-size: 100% 100%;
}
.account-wrap-login {
width: 920px;
height: 510px;
background: #fff;
border-radius: 10px;
overflow: hidden;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.login-pic {
flex: 1;
padding: 32px 8px;
box-sizing: border-box;
background-color: #1681fd;
background-image: url("./imgs/login-img.png");
background-repeat: no-repeat;
background-position: bottom;
background-size: contain;
text-align: center;
}
.login-title {
color: #ffffff;
font-size: 28px;
margin: 0 0 6px;
font-weight: 400;
letter-spacing: 1.2px;
}
.login-subtitle {
color: #fffc;
font-size: 16px;
margin: 0;
font-weight: 400;
letter-spacing: 4px;
letter-spacing: 1.2px;
}
img {
max-width: 100%;
}
.login-form {
width: 400px;
position: relative;
}
.login-form-container {
margin: auto;
width: 100%;
padding: 25px 48px 0;
box-sizing: border-box;
}
.login-form-title {
padding-bottom: 15px;
text-align: center;
}
.corner-box {
position: absolute;
top: 0;
right: 0;
display: flex;
justify-content: center;
align-items: center;
position: absolute;
right: 0;
top: 0;
width: 80px;
height: 80px;
border-radius: 0 0 0 150%;
background: #1890ff;
cursor: pointer;
}
.corner-box > img {
width: 40px;
height: 40px;
margin-right: -20px;
margin-top: -10px;
}
@media (max-width: 680px) {
.login-pic {
padding: 20px 12px 100px;
background-size: auto 100px;
}
.login-form {
width: 100%;
margin: auto;
}
}
.account-top-desc {
font-size: 24px;
font-weight: bold;
color: #000000;
margin-bottom: 18px;
}
.account-tab-box {
display: flex;
height: 34px;
margin-bottom: 18px;
background-color: #f5f5f5;
border-radius: 4px;
padding: 3px;
}
.account-tab-box > div {
flex: 1;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
color: rgba(0, 0, 0, 0.6);
}
.account-tab-box > div.active {
background-color: #ffffff;
color: rgba(0, 0, 0, 0.92);
}
.account-tab-box > div.active:hover {
color: rgba(0, 0, 0, 0.92);
}
.tab-content {
display: none;
}
.tab-content.active {
display: block;
}
@media (max-width: 680px) {
.account-container {
padding: 0;
display: block;
background: #fff;
}
.account-wrap-login {
display: block;
height: auto;
width: 100%;
background: none;
box-shadow: none;
border-radius: 0;
}
}
/*通用样式*/
input[type="text"],
input[type="password"] {
height: 40px;
line-height: 40px;
padding: 0 5px;
border-radius: 2px;
width: 100%;
border: none;
border: 1px solid #e5e7eb;
margin-bottom: 20px;
box-sizing: border-box;
}
input:focus {
outline: none;
}
.btns {
background-color: #2d8cf0;
border: none;
color: #ffffff;
width: 100%;
height: 40px;
line-height: 40px;
margin: 10px 0;
cursor: pointer;
}
/*账号登录*/
.input-icon {
background-size: 18px auto;
background-repeat: no-repeat;
padding-left: 40px !important;
}
.account-icon {
background-image: url("./imgs/user.jpg");
background-position: 12px 6px;
}
.password-icon {
background-image: url("./imgs/eye.jpg");
background-position: 12px 10px;
}
.code-icon {
background-image: url("./imgs/code.jpg");
background-position: 12px 6px;
}
.phone-icon {
background-image: url("./imgs/phone.jpg");
background-position: 12px 6px;
}
.other-login {
display: flex;
align-items: center;
justify-content: space-between;
}
.code-box {
display: flex;
}
.code-box img {
width: 105px;
height: 45px;
border-radius: 4px;
margin-left: 8px;
border: 1px solid #d9d9d9;
cursor: pointer;
}
/*手机号登录*/
.phone-box {
position: relative;
}
.phone-box > button {
position: absolute;
right:10px;
top:10px;
cursor: pointer;
background: none;
border:none;
}
/*注册*/
.rigister-content {
display: none;
}
/*扫码登录*/
.qrCode-box {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding-top: 24px;
}
.qrCode-box .qr-img {
border: 1px solid #dcdfe6;
padding: 10px;
border-radius: 4px;
}
.qrCode-box .qr-text {
cursor: pointer;
margin-top: 16px;
display: flex;
align-items: center;
justify-content: center;
color: rgba(0, 0, 0, 0.88);
}