/* login.css - 后台登录页面样式 */

/* 基本布局 */
body {
    font-family: Arial, sans-serif;
    background-color: transparent; /* 背景色 */
    margin: 0;
    padding: 0;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: transparent;
}

.login-form {
    background-color: rgba(51, 51, 51, 1);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #CCCCCC;
    font-size: 1.8rem;
}

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

label {
    font-size: 1rem;
    color: #CCCCCC;
    display: block;
    margin-bottom: 8px;
}

input[type="text"], input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #555;
    border-radius: 5px;
    font-size: 1rem;
    color: #CCCCCC;
    background-color: #333;
    box-sizing: border-box;
    transition: border-color 0.6s ease;
}

input[type="text"]:focus, input[type="password"]:focus {
    border: 1.5px solid #CCCCCC;
    transition: border-color 0.6s ease;
    outline: none;
}

button[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #555;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.6s ease;
}

button[type="submit"]:hover {
    transition: background-color 0.6s ease;
    background-color: #777;
}

.error-message {
    color: red;
    font-size: 1rem;
    margin-bottom: 20px;
    text-align: center;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .login-form {
        padding: 30px 20px;
    }

    h2 {
        font-size: 1.5rem;
    }

    input[type="text"], input[type="password"] {
        font-size: 0.9rem;
    }

    button[type="submit"] {
        font-size: 1rem;
    }
}
