main {
    height: 100vh;
    background-image: url(../../src/background-img.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    background-color: rgba(255, 255, 255, 0.6);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 300px;
}

.login-header {
    text-align: center;
}

.login-header h2 {
    margin: 0 0 10px;
}

.login-tab {
    display: flex;
    justify-content: space-around;
}

.login-tab .tab-item {
    background-color: #f4f4f9;
    width: 50%;
    border: none;
    padding: 10px 10px;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
}

.login-tab .tab-item.active {
    background-color: #19E8A2;
}

.login-form {
    padding: 20px;
    background-color: #fff;
    border-radius: 0 0 10px 10px;
}

#password-login {
    display: none;
}

.login-form input[type="text"],
.login-form input[type="password"],
.login-form input[type="tel"],
.login-form input[type="email"] {
    width: 90%;
    padding: 10px;
    margin-top: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.phone-login-btn,
.password-login-btn,
.risk-login-btn{
    width: 100%;
    padding: 10px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}

.phone-login-btn:hover,
.password-login-btn:hover {
    background-color: #218838;
}

.verification-input {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 10px;
}

.verification-input input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px;
    box-sizing: border-box;
    height: 37px; /* 固定高度 */
}

.send-code-btn {
    padding: 8px 5px;
    background-color: #fff;
    width: 40%;
    color: black;
    height: 37px; /* 与输入框相同高度 */
    border: 1px solid #ccc;
    border-left: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    margin-top: 10px;
    box-sizing: border-box; /* 确保盒模型一致 */
}

.send-code-btn:hover {
    background-color: #e0e0e0;
    color: #333;
}

.login-footer {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.login-form .register-link {
    display: block;
    text-align: center;
    color: #28a745;
    margin-top: 10px;
    text-decoration: none;
}

.login-form .register-link:hover {
    text-decoration: underline;
}

.login-footer .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.login-footer .checkbox {
    display: flex;
    flex-direction: column;
}

.login-footer .remember {
    display: flex;
    align-items: center;
    gap: 5px;
}

.login-footer .login-agreement {
    display: flex;
    align-items: center;
    gap: 5px;
}

.login-footer a {
    color: #007bff;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

.login-footer span {
    font-size: 0.6rem;
}

.login-footer .register-link {
    color: #28a745;
}

.login-footer .register-link:hover {
    text-decoration: none;
}

@media (max-width: 768px) {
    main {
        height: 100dvh;
        background-position: 65% center; /* 手机版背景图向左偏移，可根据需要调整百分比 */
    }

}

/* 晃动动画 */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* MFA弹窗样式 */
.mfa-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.mfa-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 280px;
    max-width: 90%;
    position: relative;
}

.mfa-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 0 10px 0;
    text-align: center;
    color: #333;
}

.mfa-text {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 20px 0;
    text-align: center;
}