﻿/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", "微软雅黑", Arial, sans-serif;
}

/* 页面背景 */
body {
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* 登录容器（响应式） */
.login-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(128, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    padding: 30px 20px;
    text-align: center;
}

/* 校徽区域 */
.logo-box {
    margin-bottom: 30px;
}

.school-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 15px;
}

.school-name {
    color: #8B0000; /* 深红（校徽主色） */
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.system-desc {
    color: #808080;
    font-size: 14px;
}

/* 登录表单 */
.login-form {
    width: 100%;
    padding: 0 10px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

    .form-group label {
        display: block;
        color: #333;
        font-size: 14px;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .form-group label i {
            color: #8B0000;
            font-size: 16px;
        }

    .form-group input {
        width: 100%;
        height: 45px;
        padding: 0 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        font-size: 16px;
        transition: border-color 0.3s;
    }

        .form-group input:focus {
            outline: none;
            border-color: #CD853F; /* 棕金（校徽辅色） */
            box-shadow: 0 0 5px rgba(205, 133, 63, 0.2);
        }

/* 登录按钮 */
.login-btn {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #8B0000, #A52A2A);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: background 0.3s;
    margin-bottom: 15px;
}

    .login-btn:hover {
        background: linear-gradient(135deg, #A52A2A, #8B0000);
    }

    .login-btn:disabled {
        background: #ccc;
        cursor: not-allowed;
    }

/* 提示文本 */
.login-tip {
    font-size: 13px;
    height: 20px;
    line-height: 20px;
}

    .login-tip.error {
        color: #dc3545;
    }

    .login-tip.success {
        color: #28a745;
    }

/* 响应式适配（手机端） */
@media (max-width: 480px) {
    .login-container {
        padding: 20px 15px;
    }

    .school-logo {
        width: 100px;
        height: 100px;
    }

    .school-name {
        font-size: 20px;
    }

    .form-group input {
        height: 42px;
        font-size: 15px;
    }

    .login-btn {
        height: 46px;
        font-size: 16px;
    }
}
