/**
 * 管理后台登录页面样式
 * 版本：v2.5.0
 * 更新日期：2026-06-04
 * 说明：修复背景轮播问题，更新系统主色为莫兰迪蓝(#4685FD)，修复表单无法点击问题，修复备案号链接问题
 */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 背景轮播容器 */
.bg-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.bg-slideshow .bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    min-width: 100%;
    min-height: 100%;
}

.bg-slideshow .bg-slide.active {
    opacity: 1;
}

/* 背景遮罩 - 增强文字可读性 */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

/* 登录容器 - 使用Flex居中 */
.layui-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 10;
}

/* 登录表单 */
.login-form {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 10;
}

/* Logo */
.login-logo {
    text-align: center;
    margin-bottom: 24px;
}

.login-logo img {
    max-height: 50px;
}

/* 标题 */
.login-title {
    text-align: center;
    color: #1E3A8A;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 30px;
}

/* 登录选项卡 */
.login-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #E2E8F0;
}

.login-tab {
    padding: 12px 24px;
    color: #64748B;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.login-tab:hover {
    color: #4685FD;
}

.login-tab.active {
    color: #4685FD;
    font-weight: 500;
    border-bottom-color: #4685FD;
}

/* 表单组 */
.form-group {
    position: relative;
    margin-bottom: 16px;
}

/* 输入框 */
.form-group input[type="text"],
.form-group input[type="password"],
.form-group .layui-input {
    width: 100%;
    height: 48px;
    padding: 0 15px 0 45px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background-color: #F8FAFC;
    font-size: 14px;
    color: #1E293B;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group .layui-input:focus {
    border-color: #4685FD;
    background-color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(70, 133, 253, 0.1);
    outline: none;
}

.form-group input::placeholder,
.form-group .layui-input::placeholder {
    color: #94A3B8;
}

/* 输入框图标 */
.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    z-index: 2;
}

/* 验证码输入框 */
.captcha-box input {
    padding-right: 130px;
}

/* 验证码图片 */
.captcha-img {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 110px;
    height: 36px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}

.captcha-img img {
    width: 100%;
    height: 100%;
    display: block;
}

/* 短信验证码 */
.sms-box {
    display: flex;
}

.sms-box.hidden {
    display: none;
}

.sms-box input {
    padding-right: 100px;
}

/* 发送验证码按钮 */
.sms-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 12px;
    height: 36px;
    background: linear-gradient(135deg, #4685FD 0%, #2E5BB8 100%);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sms-btn:hover {
    box-shadow: 0 4px 12px rgba(70, 133, 253, 0.3);
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    height: 48px;
    margin-top: 10px;
    background: linear-gradient(135deg, #4685FD 0%, #2E5BB8 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    box-shadow: 0 6px 16px rgba(70, 133, 253, 0.3);
    transform: translateY(-2px);
}

/* 底部版权 */
.login-footer {
    margin-top: 30px;
    text-align: center;
    color: #fff;
    font-size: 12px;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
}

.login-footer p {
    margin: 0;
}

.login-footer a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.login-footer a:hover {
    color: #4685FD;
    text-decoration: underline;
}

/* 响应式适配 */
@media (max-width: 480px) {
    .login-form {
        padding: 30px 20px;
    }
    
    .login-title {
        font-size: 20px;
    }
    
    .login-tab {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .login-footer {
        color: #64748B;
        margin-top: 20px;
    }
}

/* 自动填充样式 */
input:-webkit-autofill,
.layui-input:-webkit-autofill {
    -webkit-text-fill-color: #1E293B !important;
    -webkit-box-shadow: 0 0 0 1000px #F8FAFC inset !important;
    transition: background-color 9999s ease-in-out 0s;
}

input:-webkit-autofill:focus,
.layui-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #FFFFFF inset !important;
}
