* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-blue: #4da6ff;
    --light-blue: #e6f2ff;
    --white: #ffffff;
    --accent-orange: #ff9900;
    --text-dark: #333333;
    --text-light: #666666;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    background-color: var(--light-blue);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow);
    border-bottom: 3px solid var(--primary-blue);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 60px;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(77, 166, 255, 0.5);
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-blue);
    text-shadow: 0 0 10px rgba(77, 166, 255, 0.2);
    letter-spacing: 1px;
}

.logo-text span {
    color: var(--accent-orange);
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logout-btn {
    background: #dc3545;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
}

.logout-btn:hover {
    background: #c82333;
}

.back-btn {
    background: #6c757d;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    margin-right: 10px;
}

.back-btn:hover {
    background: #5a6268;
    text-decoration: none;
}

.return-btn {
    background: #28a745;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
}

.return-btn:hover {
    background: #218838;
    text-decoration: none;
}

/* 登录表单 */
.login-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.login-container {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 450px;
    border-top: 5px solid var(--accent-orange);
}

.login-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-blue);
    font-size: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: var(--white);
    color: var(--text-dark);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(77, 166, 255, 0.2);
}

.btn {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #cce6ff, #e6f2ff);
    color: #4da6ff;
    padding: 12px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    border: 2px solid #cce6ff;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.btn:hover {
    background: transparent;
    color: #4da6ff;
    border: 2px solid #4da6ff;
    transform: translateY(-3px);
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-light);
}

.login-footer a {
    color: var(--primary-blue);
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

.alert {
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.alert-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #dc3545;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.5);
    color: #28a745;
}

/* 页脚 */
footer {
    background: var(--primary-blue);
    color: white;
    padding: 30px 0 20px;
    border-top: 3px solid var(--primary-blue);
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-column h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-container {
        padding: 30px 20px;
    }

    .login-title {
        font-size: 24px;
    }
}