/* 登录页面现代化样式 - 鑫洁广告后台管理 */
/* 全局重置 */
.login-modern-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.login-modern-page {
    overflow: hidden;
    background-color: #0b0c10;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    /* 移除全局 color: #fff，改为只针对登录框内容设置白色 */
    position: relative;
}

/* 只针对登录框内容设置白色文字，避免影响消息框 */
.login-modern-page .login-box,
.login-modern-page .login-box * {
    color: #fff;
}

/* 背景Canvas容器 */
.login-modern-page #canvas-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* 登录框主体 */
.login-modern-page .login-box {
    position: relative;
    z-index: 2;
    width: 420px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px); /* 磨砂玻璃效果 */
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.1);
    animation: fadeIn 1s ease-in-out;
}

/* 标题样式 */
.login-modern-page .login-box h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 26px;
    color: #66fcf1;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(102, 252, 241, 0.5);
}

/* 输入框组 */
.login-modern-page .input-group {
    position: relative;
    margin-bottom: 25px;
}

.login-modern-page .input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #c5c6c7;
}

.login-modern-page .input-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #45a29e;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

/* 输入框聚焦特效 */
.login-modern-page .input-group input:focus {
    border-color: #66fcf1;
    box-shadow: 0 0 15px rgba(102, 252, 241, 0.3);
    background: rgba(0, 0, 0, 0.5);
}

/* 验证码区域 */
.login-modern-page .captcha-group {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* 底部对齐 */
}

.login-modern-page .captcha-group .input-wrapper {
    flex: 1;
    margin-right: 15px;
}

.login-modern-page .captcha-img {
    width: 120px;
    height: 46px; /* 与input高度一致 */
    background: linear-gradient(45deg, #1f2833, #45a29e);
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: 1px solid #45a29e;
    user-select: none;
    font-style: italic;
    font-weight: bold;
    font-size: 20px;
    letter-spacing: 5px;
    color: #fff;
    text-shadow: 2px 2px 2px #000;
    transition: all 0.3s ease;
}

.login-modern-page .captcha-img:hover {
    border-color: #66fcf1;
    box-shadow: 0 0 10px rgba(102, 252, 241, 0.3);
}

.login-modern-page .captcha-img img {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    object-fit: cover;
    display: block;
}

.login-modern-page .captcha-img:hover img {
    opacity: 0.8;
}

/* 记住我 & 忘记密码 */
.login-modern-page .options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
    color: #c5c6c7;
}

.login-modern-page .remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.login-modern-page .remember-me input {
    margin-right: 8px;
    accent-color: #66fcf1; /* 设置复选框颜色 */
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* 登录按钮 */
.login-modern-page .btn-login {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, #45a29e, #66fcf1);
    border: none;
    border-radius: 5px;
    color: #0b0c10;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(102, 252, 241, 0.4);
}

.login-modern-page .btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(102, 252, 241, 0.8);
}

.login-modern-page .btn-login:active {
    transform: translateY(0);
}

/* 简单的淡入动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 错误提示样式 */
.login-modern-page label.error {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

