/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

/* Body and Container Styling */
body {
    background-color: #f4f7fa;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.home-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    margin: 20px;
}

/* Logo Styling */
.logo {
    width: 120px;
    margin-bottom: 20px;
}

/* Login Form Section */
#login-form {
    width: 100%;
    text-align: center;
}

#login-form h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Alert Messages */
.alert {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

/* Input Wrapper */
.input-wrap {
    position: relative;
    margin-bottom: 20px;
}

.input-wrap input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-wrap input:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
}

.input-wrap i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 20px;
}

/* Remember Me and Forgot Password */
.rem {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: #333;
}

.rem p {
    display: flex;
    align-items: center;
}

.rem input[type="checkbox"] {
    margin-right: 8px;
}

.rem a {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.rem a:hover {
    text-decoration: underline;
}

/* Submit Button */
button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

button:active {
    background-color: #004085;
}

/* Additional Styling for Focus and Hover Effects */
input:focus + i {
    color: #007bff;
}

/* ======== 移动端隐藏图片 ======== */
@media (max-width: 1023px) {

    .login_back {
        display: none;
    }

    #login-form {
        width: 100%;
        padding: 20px;
    }
}

