html, body, #app {
|
height: 100%;
|
margin: 0;
|
padding: 0;
|
overflow: hidden;
|
}
|
|
.login-container {
|
display: flex;
|
align-items: center;
|
justify-content: center;
|
position: relative;
|
width: 100vw;
|
height: 100vh;
|
background-image: url("/images/pro-bg.png");
|
background-size: cover;
|
background-position: center;
|
min-width: 320px;
|
min-height: 480px;
|
}
|
|
.login-weaper {
|
display: flex;
|
width: 90%;
|
max-width: 800px;
|
min-width: 320px;
|
box-shadow: -4px 5px 20px rgba(0, 0, 0, 0.3);
|
border-radius: 8px;
|
overflow: hidden;
|
margin: 20px;
|
}
|
|
.login-left,
|
.login-border {
|
min-height: 400px;
|
display: flex;
|
align-items: center;
|
}
|
|
.login-left {
|
border-top-left-radius: 8px;
|
border-bottom-left-radius: 8px;
|
justify-content: center;
|
flex-direction: column;
|
background: linear-gradient(135deg, #409eff 0%, #67b8ff 100%);
|
color: #fff;
|
width: 45%;
|
padding: 30px;
|
box-sizing: border-box;
|
}
|
|
.login-time {
|
position: absolute;
|
top: 20px;
|
left: 20px;
|
color: rgba(255, 255, 255, 0.9);
|
font-weight: 300;
|
font-size: clamp(12px, 2vw, 16px);
|
}
|
|
.login-left .img {
|
width: clamp(80px, 25vw, 120px);
|
margin-bottom: 15px;
|
}
|
|
.login-left .title {
|
text-align: center;
|
color: #fff;
|
font-weight: 400;
|
letter-spacing: 2px;
|
font-size: clamp(16px, 4vw, 22px);
|
margin: 0;
|
}
|
|
.login-border {
|
border-top-right-radius: 8px;
|
border-bottom-right-radius: 8px;
|
background-color: #fff;
|
width: 55%;
|
padding: 30px;
|
box-sizing: border-box;
|
}
|
|
.login-main {
|
width: 100%;
|
}
|
|
.login-title {
|
color: #333;
|
margin-bottom: 8px;
|
font-weight: 500;
|
font-size: clamp(16px, 4vw, 20px);
|
text-align: center;
|
letter-spacing: 2px;
|
}
|
|
.login-title-child {
|
color: #999;
|
margin-bottom: 25px;
|
font-weight: 300;
|
font-size: clamp(10px, 2.5vw, 12px);
|
text-align: center;
|
letter-spacing: 1px;
|
}
|
|
.login-form {
|
margin: 0;
|
|
.el-form-item {
|
margin-bottom: 18px;
|
}
|
|
.el-input {
|
width: 100%;
|
|
input {
|
padding: clamp(10px, 3vw, 12px) clamp(12px, 3vw, 15px);
|
border: 1px solid #e4e7ed;
|
border-radius: 6px;
|
font-size: clamp(12px, 3vw, 14px);
|
transition: border-color 0.3s;
|
box-sizing: border-box;
|
|
&:focus {
|
border-color: #409eff;
|
outline: none;
|
}
|
}
|
|
.el-input__prefix {
|
i {
|
color: #909399;
|
font-size: clamp(14px, 3vw, 16px);
|
}
|
}
|
|
.el-input__suffix {
|
i {
|
color: #909399;
|
cursor: pointer;
|
}
|
}
|
}
|
}
|
|
.login-submit {
|
width: 100%;
|
height: clamp(36px, 8vw, 42px);
|
background: linear-gradient(135deg, #409eff 0%, #67b8ff 100%);
|
border: none;
|
border-radius: 6px;
|
font-size: clamp(14px, 3vw, 16px);
|
letter-spacing: 2px;
|
color: #fff;
|
cursor: pointer;
|
margin-top: 10px;
|
transition: opacity 0.3s;
|
|
&:hover {
|
opacity: 0.9;
|
}
|
|
&:active {
|
opacity: 0.8;
|
}
|
}
|
|
@media screen and (max-width: 640px) {
|
.login-weaper {
|
flex-direction: column;
|
width: 95%;
|
}
|
|
.login-left,
|
.login-border {
|
width: 100%;
|
min-height: auto;
|
border-radius: 0;
|
}
|
|
.login-left {
|
border-top-left-radius: 8px;
|
border-top-right-radius: 8px;
|
padding: 25px 20px;
|
}
|
|
.login-border {
|
border-bottom-left-radius: 8px;
|
border-bottom-right-radius: 8px;
|
padding: 25px 20px;
|
}
|
|
.login-time {
|
position: static;
|
margin-bottom: 15px;
|
text-align: center;
|
}
|
}
|
|
@media screen and (max-height: 500px) {
|
.login-weaper {
|
transform: scale(0.9);
|
}
|
}
|
|
@media screen and (max-height: 450px) {
|
.login-weaper {
|
transform: scale(0.85);
|
}
|
}
|