﻿body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-container {
    width: 100%;
    max-width: 400px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

    .login-container:hover {
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }

.login-header {
    background: linear-gradient(135deg, #e78f65, #2563eb);
    color: white;
    padding: 30px;
    text-align: center;
}

    .login-header h1 {
        margin: 0;
        font-size: 24px;
        font-weight: 600;
    }

    .login-header p {
        margin: 10px 0 0;
        font-size: 14px;
        opacity: 0.8;
    }

.login-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

    .form-group label {
        display: block;
        font-size: 14px;
        color: #4b5563;
        margin-bottom: 8px;
        font-weight: 500;
    }

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

    .form-control:focus {
        outline: none;
        border-color: #3b82f6;
        box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    }

.form-group i {
    position: absolute;
    right: 15px;
    top: 40px;
    color: #9ca3af;
}

.btn-login {
    width: 100%;
    padding: 12px 15px;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .btn-login:hover {
        background-color: #2563eb;
    }

    .btn-login i {
        margin-right: 8px;
    }

.error-message {
    color: #ef4444;
    font-size: 13px;
    margin-top: 8px;
    display: none;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #6b7280;
}

.logo-container {
    text-align: center;
    margin-bottom: 25px;
}

.logo {
    width: 80px;
    height: 80px;
    background-color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

    .logo i {
        font-size: 36px;
        color: #3b82f6;
    }

/* 响应式设计 */
@media (max-width: 480px) {
    .login-container {
        margin: 20px;
    }
}

body {
    background-image: url(/lib/login/img/loginbanner2.jpg);
    background-position: center; /* 图片居中 */
    background-repeat: no-repeat; /* 不重复 */
    background-size: cover; /* 可选：使图片覆盖整个背景区域 */
}

.image-container {
    position: relative;
}

    .image-container::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5); /* 黑色半透明蒙层，0.5是透明度 */
    }

.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    z-index: 2;
}
