imeeting/frontend/src/pages/auth/login/index.less

322 lines
4.8 KiB
Plaintext

.login-page {
min-height: 100vh;
display: flex;
background: #f5f6fa;
}
.login-left {
flex: 0 0 60.42%;
background: #f9fafe;
padding: 59px 67px;
display: flex;
flex-direction: column;
position: relative;
overflow: hidden;
}
.login-left-bg {
position: absolute;
top: 50%;
left: 50%;
width: 110vh;
height: 110vw;
transform: translate(-50%, -50%) rotate(90deg);
background: url("/static/login/login-bg.png") center / cover no-repeat;
pointer-events: none;
}
.login-brand {
display: flex;
align-items: center;
gap: 10px;
z-index: 1;
}
.brand-logo-img {
width: 34px;
height: 34px;
}
.brand-name {
font-size: 20px;
font-weight: 600;
color: #2f3a4f;
letter-spacing: 0;
}
.login-hero {
margin-top: 171px;
z-index: 1;
}
.hero-title {
font-size: 50px;
font-weight: 700;
line-height: 46px;
color: #333;
margin-bottom: 16px;
max-width: 605px;
letter-spacing: 0;
}
.hero-accent {
color: #1677ff;
position: relative;
}
.hero-desc {
font-size: 16px;
line-height: 30px;
color: #596275;
max-width: 605px;
}
.login-download {
margin-top: 150px;
z-index: 1;
}
.download-title {
font-size: 21px;
line-height: 30px;
letter-spacing: -0.33px;
color: #000;
margin-bottom: 24px;
}
.download-list {
display: flex;
flex-wrap: wrap;
gap: 24px;
}
.download-item {
display: inline-flex;
align-items: center;
gap: 16px;
padding: 16px 24px;
border: 1px solid #fff;
border-radius: 8px;
background: #fff;
cursor: pointer;
transition: background-image 0.2s ease, box-shadow 0.2s ease;
}
.download-icon {
width: 32px;
height: 32px;
display: block;
}
.download-name {
font-size: 20px;
line-height: 30px;
letter-spacing: -0.33px;
color: #000;
white-space: nowrap;
}
.download-item:hover,
.download-item.is-active {
background-image: linear-gradient(124.68deg, #5cbbff 1.57%, #1677ff 59.96%);
box-shadow: 0 6px 16px rgba(22, 119, 255, 0.2);
}
.download-item:hover .download-name,
.download-item.is-active .download-name {
color: #fff;
}
.download-item:hover .download-icon,
.download-item.is-active .download-icon {
filter: brightness(0) invert(1);
}
.download-item:focus-visible {
outline: 2px solid #1677ff;
outline-offset: 2px;
}
.login-left-footer {
display: flex;
align-items: center;
gap: 12px;
color: #8c97a8;
font-size: 14px;
margin-top: auto;
z-index: 1;
}
.footer-divider {
width: 4px;
height: 4px;
background: #c4ccd7;
border-radius: 50%;
}
.login-right {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
padding: 40px;
background: #ffffff;
}
.login-container {
width: 100%;
max-width: 420px;
}
.login-header {
margin-bottom: 40px;
}
.login-header h2 {
font-size: 28px !important;
font-weight: 700 !important;
color: #333 !important;
margin-bottom: 8px !important;
letter-spacing: 0;
}
.login-header span {
font-size: 15px;
color: #6b7280;
}
.login-form .ant-form-item {
margin-bottom: 20px;
}
.login-form .ant-input-affix-wrapper-lg {
padding: 11px 16px;
border-color: #e6e6e6;
border-radius: 4px;
}
.captcha-wrapper {
display: flex;
gap: 12px;
}
.captcha-image-btn {
padding: 0;
width: 120px;
height: 48px;
flex-shrink: 0;
border-radius: 4px;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
background: #f9fafb;
}
.captcha-image-btn img {
width: 100%;
height: 100%;
object-fit: cover;
transition: opacity 0.2s;
}
.captcha-image-btn:hover img {
opacity: 0.8;
}
.login-extra {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: -4px;
margin-bottom: 24px;
}
.forgot-password {
font-size: 14px;
color: #1677ff;
}
.login-submit-btn {
height: 50px;
font-size: 16px;
font-weight: 600;
border-radius: 4px;
}
.login-footer {
margin-top: 32px;
text-align: center;
padding: 16px;
background: #f9fafb;
border: 1px solid #e6e6e6;
border-radius: 4px;
}
.tabular-nums {
font-variant-numeric: tabular-nums;
}
@media (max-width: 1360px) {
.download-list {
gap: 16px;
}
.download-item {
padding: 16px 20px;
}
}
@media (max-width: 1024px) {
.login-left {
padding: 48px;
}
.hero-title {
font-size: 36px;
line-height: 44px;
}
.login-hero {
margin-top: 96px;
}
.login-download {
margin-top: 88px;
}
}
@media (max-height: 760px) {
.login-hero {
margin-top: 64px;
}
.login-download {
margin-top: 56px;
}
}
@media (max-width: 900px) {
.login-left {
display: none;
}
.login-right {
background: #f3f4f6;
}
.login-container {
background: #ffffff;
padding: 48px 32px;
border: 1px solid #e6e6e6;
border-radius: 4px;
box-shadow: none;
}
}
@media (max-width: 480px) {
.login-right {
padding: 20px;
}
.login-container {
padding: 32px 20px;
}
}