.button-data {
    padding: 10px 20px;
    font-size: 16px;
    background-color: rgb(255, 74, 74);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button-data:hover {
    background-color: rgb(209, 17, 17);
}
#top-name{
    font-size: 25px;
}
.modal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.5); 
}
.modal-top{
    height: 40px;
    width: 100%;
    border-bottom: 1px #E5E5E5 solid;
}
.modal-data {
    padding: 20px 30px;
    font-family: "microsoft yahei";
}
.modal-content {
    background-color: #fff;
    margin: 10% auto; 
    padding: 30px; 
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 450px;  
    transition: transform 0.3s, opacity 0.3s;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.tabcontent {
    display: none;
}

.tabcontent.active {
    display: block;
}

.form-data {
    display: flex;
    flex-direction: column;
}

.form-data label {
    margin-bottom: 5px;
    font-weight: bold;
}

.form-data input {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border 0.3s;
    margin-top: 10px; /* 增加外边距 */
}

.form-data input:focus {
    border: 1px solid #2196F3;
    outline: none;
}

.actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* 使按钮和文字右对齐 */
    margin-bottom: 20px;
}

.switch {
    display: flex;
    justify-content: flex-end; /* 使注册和忘记密码靠右对齐 */
    width: 100%; /* 确保占满父容器 */
    color: #666;
    cursor: pointer;
    margin-top: 10px; /* 增加上下间距 */
}
.switch span{
    margin: 0 10px;
}

.switch span:hover,.switch p:hover {
    text-decoration: underline;
}

.actions .button-data {
    margin-top: 10px; /* 按钮与文本之间的间距 */
}
/* 响应式样式 */
@media (max-width: 600px) {
    .modal-content {
        width: 90%;  /* 手机端宽度调整 */
        padding: 20px; /* 内边距调整 */
    }

    h2 {
        font-size: 1.5em; /* 标题字号调整 */
    }

    .form-data input {
        padding: 8px; /* 输入框内边距调整 */
    }

    .button-data {
        padding: 8px 16px; /* 按钮内边距调整 */
    }
}