/* 通用样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 40px;
    background-color: #9A3476  !important;;
}

/* 其余页面样式保持不变 */
h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    background: #9A3476;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

a {
    color: #2980b9;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 表单样式 */
form.user-form {
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    margin: auto;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

form.user-form .form-group {
    margin-bottom: 15px;
}

form.user-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

form.user-form input[type="password"]{
    width: 100%;
    padding: 10px;
    margin: 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

form.user-form input[type="text"],
form.user-form textarea {
    width: 100%;
    padding: 10px;
    margin: 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

form.user-form input[type="text"]:focus,
form.user-form textarea:focus {
    border-color: #2980b9;
    outline: none;
}

.save-btn {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    width: auto;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

.save-btn:hover {
    background-color: #219150;
}

/* 返回按钮 */
button.back {
    background-color: #7f8c8d;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

button.back:hover {
    background-color: #6c7a89;
}

.vericodediv{
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vericodeimg{
    height: 80%;
    text-align: center;
    justify-content: center;
}

/* 响应式布局 */
@media screen and (max-width: 768px) {
    body {
        margin: 20px;
    }

    h2 {
        font-size: 1.5em;
    }

    form.user-form {
        max-width: 100%;
    }

    button {
        width: 100%;
        padding: 15px;
    }

    .stats-box {
        padding: 15px;
    }
}

/* 超小屏幕设备（手机） */
@media screen and (max-width: 480px) {
    h2 {
        font-size: 1.2em;
    }

    form.user-form {
        padding: 15px;
    }

    input[type="text"],
    textarea {
        padding: 8px;
    }

    button {
        background-color: #27ae60;
        color: white;
        border: none;
        padding: 12px 20px;
        border-radius: 6px;
        cursor: pointer;
        font-size: 14px;
        margin: 10px;
    }

    .stats-box {
        padding: 10px;
    }
}

/* 分页导航样式 */
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.pagination a,
.pagination span.current {
    background-color: #2980b9;
    color: white;
    padding: 10px 15px;
    margin: 0 5px;
    border-radius: 6px;
    text-decoration: none;
}

.pagination a:hover {
    background-color: #219150;
}

.pagination span.current {
    background-color: #7f8c8d;
}

/* search-and-add-container 样式 */
.search-and-add-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

@media screen and (max-width: 768px) {
    .search-and-add-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-form {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* 新增样式 */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.register-link {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

        /* Alert box styles */
.alert-box {
    display: none;
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f44336;
    color: white;
    padding: 15px;
    border-radius: 8px;
    z-index: 9999;
    font-size: 1rem;
    text-align: center;
    width: 80%;
    max-width: 400px;
}

.alert-box button {
    background-color: #fff;
    color: #f44336;
    padding: 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.alert-box button:hover {
    background-color: #f1f1f1;
}

.input-with-icon {
        position: relative;
    }
.input-with-icon input {
    padding-right: 40px; /* 为眼睛图标留出空间 */
}
.input-with-icon .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2rem;
    color: #6c757d;
    transition: color 0.2s;
}
.input-with-icon .toggle-password:hover {
    color: #007bff;
}



