* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin: 0;
}

.top-bar {
    width: 100%;
    height: 64px;
    background-color: #8B0000;
    margin-bottom: 60px;
}

.container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.system-title {
    color: #8B0000;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 50px;
    text-align: center;
    letter-spacing: 2px;
}

.login-box {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    transition: all 0.3s ease;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h2 {
    color: #333;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 700;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
    background-color: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #8B0000;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.btn-login {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    background: #8B0000;
    color: white;
    margin-top: 10px;
    display: block;
}

.btn-login:hover {
    background: #A52A2A;
}

.btn-login:active {
    transform: translateY(1px);
}

.response-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    width: 100%;
    max-width: 400px;
    transition: all 0.3s;
}

.response-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.response-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.response-message.hidden {
    display: none;
}

/* 表格样式 (保留原有) */
.table-container {
    width: 100%;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th,
td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

th {
    background-color: #f8f9fa;
    color: #4a5568;
    font-weight: 600;
}

tr:hover {
    background-color: #f7fafc;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge-admin {
    background-color: #bee3f8;
    color: #2b6cb0;
}

.badge-normal {
    background-color: #c6f6d5;
    color: #276749;
}

.btn-logout {
    padding: 10px 20px;
    background-color: #e53e3e;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
    margin-top: 20px;
}

.btn-logout:hover {
    background-color: #c53030;
}

.hidden {
    display: none;
}

@media (max-width: 600px) {
    .system-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .login-box {
        padding: 25px;
        width: 90%;
    }
}
