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;
}

.register-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;
}

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

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

.toggle-register {
    display: flex;
    justify-content: space-around;
}

.toggle-register button {
    background-color: #f4f4f9;
    width: 50%;
    border: none;
    padding: 10px 10px;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
}

.toggle-register button.active {
    background-color: #19E8A2;
}

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

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

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

.register-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;
}

.register-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.register-footer > div {
    display: flex;
    align-items: center;
    gap: 5px;
}

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

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

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

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

.register-footer .login-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);
    }
}