/**
 * login.css - 登录页面样式
 * 
 * 方灿体育企业OA系统 - 登录页面专用样式
 * 参考原版本实现
 * 
 * @author MrLeochen <leo@fangcan.cn>
 * @version 1.0.1
 */

/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #000;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
    position: relative;
    overflow: hidden;
    color: #fff;
    padding-bottom: 80px; /* 为底栏预留空间 */
}

/* 背景网格效果 */
.bg-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 49%, rgba(70, 70, 70, 0.2) 49%, 
                                rgba(70, 70, 70, 0.2) 51%, transparent 51%);
    background-size: 30px 30px;
    background-color: #000;
    opacity: 0.5;
    z-index: -2;
    overflow: hidden;
}

/* 流星效果 */
.bg-lines::before,
.bg-lines::after {
    content: "";
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 
        0 0 0 4px rgba(255, 255, 255, 0.1),
        0 0 0 8px rgba(255, 255, 255, 0.1),
        0 0 20px rgba(255, 255, 255, 0.3);
    animation: shooting 3s infinite linear;
}

.bg-lines::before {
    top: 0;
    left: 25%;
    animation-delay: 0s;
}

.bg-lines::after {
    top: 30%;
    left: 80%;
    animation-delay: 1.5s;
}

@keyframes shooting {
    0% {
        transform: translate(0, 0) rotate(-45deg) scale(0.1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    20% {
        transform: translate(-100px, 100px) rotate(-45deg) scale(0.5);
        opacity: 0;
    }
    100% {
        transform: translate(-300px, 300px) rotate(-45deg) scale(1);
        opacity: 0;
    }
}

/* 添加更多流星 */
.bg-lines::before {
    box-shadow: 
        0 0 0 4px rgba(255, 255, 255, 0.1),
        0 0 0 8px rgba(255, 255, 255, 0.1),
        0 0 20px rgba(255, 255, 255, 0.3),
        /* 更多流星 */
        100px 200px 0 0 rgba(255, 255, 255, 0.6),
        150px -300px 0 0 rgba(255, 255, 255, 0.5),
        -250px 100px 0 0 rgba(255, 255, 255, 0.7);
}

/* 背景光晕效果增强 */
.bg-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: radial-gradient(ellipse, rgba(118, 86, 174, 0.25) 0%, rgba(118, 86, 174, 0.1) 50%, rgba(0, 0, 0, 0) 80%);
    z-index: -1;
    animation: pulse 10s ease-in-out infinite;
    filter: blur(15px);
}

@keyframes pulse {
    0% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.05); }
    100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
}

/* 登录容器 */
.login-container {
    background-color: rgba(18, 18, 24, 0.85);
    border-radius: 10px;
    width: 80%;
    max-width: 460px;
    margin: 0 auto;
    padding: 30px 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    z-index: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: 30px; /* 增加底部间距 */
}

/* 登录页LOGO区域 */
.login-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 15px 0 25px;
    position: relative;
    width: 100%;
    text-align: center;
}

.login-logo img {
    max-width: 120px;
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 12px rgba(118, 86, 174, 0.7));
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% {
        filter: drop-shadow(0 0 12px rgba(118, 86, 174, 0.5));
    }
    100% {
        filter: drop-shadow(0 0 20px rgba(142, 84, 233, 0.8));
    }
}

.login-logo h1 {
    font-size: 20px;
    color: #fff;
    font-weight: normal;
    margin: 5px 0;
    text-align: center;
    position: relative;
    text-shadow: 0 0 8px rgba(118, 86, 174, 0.3);
}

/* 跑马灯下划线效果 */
.logo-underline {
    position: relative;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #5e6eff, #c872ff, #5e6eff);
    background-size: 200% 100%;
    margin-top: 10px;
    box-shadow: 0 0 5px rgba(118, 86, 174, 0.5);
    animation: gradientMove 2.5s linear infinite;
    overflow: hidden;
}

.logo-underline::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.9) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    animation: lightMove 2.5s ease-in-out infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes lightMove {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* 登录区域 */
.login-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}

/* 二维码区域 */
#wx_reg {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px auto 20px;
    text-align: center;
}

.help-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    text-align: center;
    margin: 15px 0;
    padding: 0 20px;
    line-height: 1.5;
}

/* 状态消息 */
.fcoa-status {
    margin: 20px auto;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    width: 80%;
    max-width: 320px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: fadeIn 0.5s ease-in-out;
    display: block;
}

.fcoa-status-error {
    background-color: rgba(220, 53, 69, 0.1);
    color: #ff6b6b;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 页脚 */
.fcoa-footer {
    margin-top: 20px;
    padding: 15px 0;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    width: 100%;
    position: absolute;
    bottom: 20px;
    background-color: rgba(30, 30, 40, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.fcoa-footer p {
    margin: 0 0 5px 0;
}

.fcoa-footer-links {
    margin-top: 5px;
    font-size: 11px;
}

.fcoa-footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0 5px;
    transition: color 0.3s ease;
}

.fcoa-footer-link:hover {
    color: rgba(180, 130, 255, 1);
}

.fcoa-footer-separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 2px;
}

/* 企业微信扫码框样式覆盖 */
.impowerBox {
    width: 100% !important;
    margin: 0 auto !important;
    border: none !important;
    background-color: transparent !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

.impowerBox .qrcode {
    margin: 0 auto !important;
    width: 180px !important;
    height: 180px !important;
    border: 5px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2) !important;
    display: block !important;
}

.impowerBox .title {
    display: none !important;
}

.impowerBox .info {
    display: none !important;
}

.impowerBox .status {
    margin-top: 10px !important;
    text-align: center !important;
}

.impowerBox .wrp_status {
    display: inline-block !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    background: rgba(94, 110, 255, 0.1) !important;
    color: #5e6eff !important;
}

/* 去除加载动画 */
.loading-spinner {
    display: none;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .login-container {
        width: 95%;
        border-radius: 8px;
        padding: 20px 15px;
    }
    
    .login-logo img {
        width: 60px;
    }
    
    .login-logo h1 {
        font-size: 18px;
    }
    
    .impowerBox .qrcode {
        width: 180px !important;
        height: 180px !important;
        margin: 0 auto !important;
    }
    
    .fcoa-footer {
        position: relative;
        bottom: auto;
        margin-top: 40px;
        padding: 10px 0;
    }
    
    body {
        padding-bottom: 0;
        min-height: 100vh;
        justify-content: flex-start;
        padding-top: 40px;
    }
}

/* 流星效果 - 独立元素 */
.shooting-star {
    position: fixed;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1), 0 0 0 8px rgba(255, 255, 255, 0.1), 0 0 20px rgba(255, 255, 255, 1);
    opacity: 0;
    z-index: -1;
}

.star1 {
    top: 10%;
    left: 45%;
    animation: shootingStar1 4s linear infinite;
    animation-delay: 0s;
}

.star2 {
    top: 50%;
    left: 10%;
    animation: shootingStar2 6s linear infinite;
    animation-delay: 1s;
}

.star3 {
    top: 80%;
    left: 80%;
    animation: shootingStar3 5s linear infinite;
    animation-delay: 2.5s;
}

@keyframes shootingStar1 {
    0% {
        transform: translate(0, 0) rotate(-45deg) scale(0.1);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    15% {
        transform: translate(-200px, 200px) rotate(-45deg) scale(1);
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

@keyframes shootingStar2 {
    0% {
        transform: translate(0, 0) rotate(-35deg) scale(0.1);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    15% {
        transform: translate(250px, 180px) rotate(-35deg) scale(1);
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

@keyframes shootingStar3 {
    0% {
        transform: translate(0, 0) rotate(-60deg) scale(0.1);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    15% {
        transform: translate(-150px, 80px) rotate(-60deg) scale(1);
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
} 