/* 模态框背景样式 */
.modal {
    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;
}

/* 模态框内容样式 */
.modal-content {
    background-color: #fff;
    padding: 20px;
    /* border-radius: 8px; */
    /* 可根据需求调整宽度 */
    width: 400px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    box-sizing: border-box;
}

button {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    background-color: #007BFF;
    color: white;
    border: none;
    cursor: pointer;
}

.login-type button {
    width: 50%;
    float: left;
    background-color: #f0f0f0;
    color: black;
}

.login-type button.active {
    background-color: #007BFF;
    color: white;
}

#free-register {
    text-align: center;
    color: #007BFF;
    cursor: pointer;
}

#login-agreement,
#register-agreement {
    width: 5%;
}

.empty-tip {
    color: red;
    font-size: 12px;
    margin-top: -6px;
    margin-left: 45px;
}

.error-tip {
    color: red;
    margin-top: -6px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-8px); }
    20% { transform: translateX(8px); }
    30% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    50% { transform: translateX(-4px); }
    60% { transform: translateX(4px); }
    70% { transform: translateX(-2px); }
    80% { transform: translateX(2px); }
}

.shake {
    animation: shake 0.8s;
}

.sms-input-container {
    position: relative;
}

#code-input {
    width: 84%;
    box-sizing: border-box;
    padding-right: 120px;
}

#get-sms-code {
    position: absolute;
    right: 2%;
    top: 33%;
    transform: translateY(-50%);
    width: 25%;
    height: 55%;
    padding-top: 8px;
    color: black;
    background-color: transparent;
    border: none; /* 若需要去掉边框，可添加此属性 */
}

.custom-confirm-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 20%; /* 向下移动，可根据需求调整 */
    width: 100%;
    height: 100%;
    overflow: auto;
}

.custom-confirm-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 300px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.custom-confirm-buttons {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.custom-confirm-buttons button {
    margin-left: 10px;
    padding: 5px 15px;
    cursor: pointer;
}