/* app/static/css/admin/login.css */

/* 主体样式 */
body {
    height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                    url("../img/login-bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 登录容器 */
.login-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 登录框 */
.login-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    max-width: 450px;
    width: 90%;
    animation: fadeIn 0.5s ease-in-out;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo区域 */
.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo img {
    height: 60px;
    margin-bottom: 15px;
}

/* 表单控件 */
.form-control {
    height: 50px;
    padding-left: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: #218fce;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

/* 登录按钮 */
.btn-login {
    height: 50px;
    border-radius: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #218fce;
    border: none;
    transition: all 0.3s;
}

.btn-login:hover {
    background: #218fce;
    transform: translateY(-2px);
}

/* 提示框 */
.alert {
    border-radius: 8px;
    margin-bottom: 20px;
}

/* 输入框组 */
.input-group-text {
    background: transparent;
    border-right: none;
}

.form-control.with-icon {
    border-left: none;
}

/* 记住我选项 */
.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 版权信息 */
.copyright {
    text-align: center;
    color: white;
    margin-top: 20px;
    font-size: 0.9rem;
}