/* ============================================
   Tech-Auth CSS - 科技现代感授权系统样式
   适配 LightYear 模板框架
   ============================================ */

/* === 全局重置与基础 === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    overflow: hidden;
}

/* === 动态背景 === */
.tech-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0e17 0%, #0d1525 30%, #131b2e 60%, #0a0e17 100%);
    z-index: 0;
}

/* 网格背景 */
.tech-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
}

/* 光晕效果 */
.tech-bg::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(79, 172, 254, 0.06) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 50%, rgba(0, 150, 255, 0.04) 0%, transparent 70%);
    z-index: 1;
    animation: bgPulse 8s ease-in-out infinite alternate;
}

@keyframes bgPulse {
    0% { opacity: 0.6; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}

/* 粒子画布 */
#techParticles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* === 主容器 === */
.lyear-wrapper {
    position: relative !important;
    z-index: 10 !important;
    background: none !important;
    background-image: none !important;
}

.lyear-login {
    display: flex !important;
    min-height: 100vh;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px;
}

/* === 玻璃拟态卡片 === */
.login-center {
    background: rgba(13, 21, 37, 0.75) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.15) !important;
    border-radius: 16px !important;
    min-width: 380px;
    max-width: 440px;
    width: 100%;
    padding: 40px 36px !important;
    margin: 0 !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(0, 212, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

/* 卡片顶部光条 */
.login-center::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00d4ff, #4facfe, #00d4ff, transparent);
    border-radius: 16px 16px 0 0;
}

/* 卡片内光效 */
.login-center::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 0%, rgba(0, 212, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* === Logo区域 === */
.login-header {
    margin-bottom: 28px !important;
    text-align: center;
    position: relative;
    z-index: 1;
}

.login-header img {
    max-height: 50px;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
    transition: filter 0.3s ease;
}

.login-header img:hover {
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5));
}

.tech-title {
    color: #e0e8f0;
    font-size: 22px;
    font-weight: 600;
    margin-top: 12px;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.tech-subtitle {
    color: rgba(160, 180, 200, 0.7);
    font-size: 13px;
    margin-top: 6px;
    letter-spacing: 1px;
}

/* === 表单样式 === */
form {
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 18px;
}

/* 输入框容器 */
.form-control {
    background: rgba(10, 14, 23, 0.6) !important;
    border: 1px solid rgba(0, 212, 255, 0.15) !important;
    border-radius: 10px !important;
    color: #c8d6e5 !important;
    padding: 11px 14px 11px 42px !important;
    font-size: 14px;
    transition: all 0.3s ease;
    height: 44px;
}

.form-control:focus {
    background: rgba(10, 14, 23, 0.8) !important;
    border-color: rgba(0, 212, 255, 0.5) !important;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.15), inset 0 0 5px rgba(0, 212, 255, 0.05) !important;
    color: #fff !important;
}

.form-control::placeholder {
    color: rgba(120, 140, 160, 0.6) !important;
}

/* 图标反馈 */
.has-feedback.feedback-left .form-control-feedback {
    left: 0 !important;
    right: auto !important;
    width: 42px !important;
    height: 44px !important;
    line-height: 44px !important;
    z-index: 4;
    color: rgba(0, 212, 255, 0.5) !important;
    text-align: center;
    transition: color 0.3s ease;
}

.has-feedback.feedback-left .form-control:focus + .form-control-feedback,
.has-feedback.feedback-left:focus-within .form-control-feedback {
    color: #00d4ff !important;
}

/* 验证码输入框 */
.has-feedback.feedback-left.row .form-control-feedback {
    left: 15px !important;
}

.code {
    height: 44px !important;
    border-radius: 10px !important;
}

/* === 按钮 === */
.btn-info {
    background: linear-gradient(135deg, #00d4ff, #4facfe) !important;
    border: none !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 2px;
    padding: 11px 20px !important;
    height: 44px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.4);
}

.btn-info:hover::before {
    left: 100%;
}

.btn-info:active {
    transform: translateY(0);
}

/* 次要按钮 */
.btn-danger {
    background: rgba(255, 71, 87, 0.15) !important;
    border: 1px solid rgba(255, 71, 87, 0.3) !important;
    border-radius: 8px !important;
    color: #ff6b7a !important;
    font-size: 13px;
    padding: 8px 16px !important;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: rgba(255, 71, 87, 0.25) !important;
    border-color: rgba(255, 71, 87, 0.5) !important;
    color: #ff8a95 !important;
}

.btn-dark {
    background: rgba(0, 212, 255, 0.1) !important;
    border: 1px solid rgba(0, 212, 255, 0.2) !important;
    border-radius: 8px !important;
    color: #00d4ff !important;
    font-size: 13px;
    padding: 8px 16px !important;
    transition: all 0.3s ease;
}

.btn-dark:hover {
    background: rgba(0, 212, 255, 0.2) !important;
    border-color: rgba(0, 212, 255, 0.4) !important;
}

.btn-success {
    background: linear-gradient(135deg, #00b894, #00cec9) !important;
    border: none !important;
    border-radius: 8px !important;
    color: #fff !important;
    font-size: 13px;
    transition: all 0.3s ease;
}

.btn-success:hover {
    box-shadow: 0 4px 15px rgba(0, 206, 201, 0.3);
}

.btn-rounded {
    border-radius: 8px !important;
}

/* === 分隔线 === */
.divider {
    color: rgba(160, 180, 200, 0.4) !important;
    font-size: 11px;
    letter-spacing: 2px;
    margin: 20px 0 15px;
    position: relative;
    text-align: center;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 40px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.15), transparent);
}

.divider::before {
    left: 0;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.15));
}

.divider::after {
    right: 0;
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.15), transparent);
}

/* === 第三方登录 === */
.mdi-qqchat {
    color: #4facfe !important;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(79, 172, 254, 0.3));
}

.mdi-qqchat:hover {
    color: #00d4ff !important;
    filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.6));
    transform: scale(1.15);
}

/* === 验证码区域 === */
#captcha {
    margin-bottom: 18px;
}

#wait {
    text-align: center;
}

/* vaptcha 容器 */
#vaptchaContainer {
    margin-bottom: 18px;
}

.vaptcha-init-loading {
    text-align: center;
}

.vaptcha-text {
    color: rgba(160, 180, 200, 0.6) !important;
}

/* === 页脚 === */
.login-center footer {
    position: relative;
    z-index: 1;
}

.login-center footer p {
    color: rgba(120, 140, 160, 0.5) !important;
    font-size: 12px;
}

.login-center footer a {
    color: rgba(0, 212, 255, 0.6) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-center footer a:hover {
    color: #00d4ff !important;
}

/* === 链接组 === */
.form-group .btn-danger,
.form-group .btn-dark {
    min-width: 110px;
    text-align: center;
}

/* === 响应式 === */
@media (max-width: 480px) {
    .login-center {
        min-width: auto !important;
        max-width: 100% !important;
        padding: 30px 20px !important;
        margin: 10px !important;
        border-radius: 12px !important;
    }
    
    .tech-title {
        font-size: 18px;
    }
    
    .tech-subtitle {
        font-size: 12px;
    }
    
    .form-group .btn-danger,
    .form-group .btn-dark {
        min-width: 90px;
        font-size: 12px;
        padding: 7px 12px !important;
    }
}

/* === 动画 === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-center {
    animation: fadeInUp 0.6s ease-out;
}

.login-center .form-group:nth-child(1) { animation: fadeInUp 0.6s ease-out 0.1s both; }
.login-center .form-group:nth-child(2) { animation: fadeInUp 0.6s ease-out 0.15s both; }
.login-center .form-group:nth-child(3) { animation: fadeInUp 0.6s ease-out 0.2s both; }
.login-center .form-group:nth-child(4) { animation: fadeInUp 0.6s ease-out 0.25s both; }
.login-center .form-group:nth-child(5) { animation: fadeInUp 0.6s ease-out 0.3s both; }
.login-center .form-group:nth-child(6) { animation: fadeInUp 0.6s ease-out 0.35s both; }
.login-center .form-group:nth-child(7) { animation: fadeInUp 0.6s ease-out 0.4s both; }
.login-center .form-group:nth-child(8) { animation: fadeInUp 0.6s ease-out 0.45s both; }

/* === 扫描线效果 === */
.tech-scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
}

/* === 浮动光点 === */
.tech-orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    filter: blur(60px);
    animation: orbFloat 10s ease-in-out infinite;
}

.tech-orb-1 {
    width: 300px;
    height: 300px;
    background: rgba(0, 212, 255, 0.06);
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.tech-orb-2 {
    width: 250px;
    height: 250px;
    background: rgba(79, 172, 254, 0.05);
    bottom: 15%;
    left: 5%;
    animation-delay: -5s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(20px, -30px); }
    50% { transform: translate(-10px, 20px); }
    75% { transform: translate(15px, 10px); }
}

/* === jQuery-confirm 覆盖 === */
.jconfirm .jconfirm-box {
    background: rgba(13, 21, 37, 0.95) !important;
    border: 1px solid rgba(0, 212, 255, 0.2) !important;
    border-radius: 12px !important;
    color: #c8d6e5 !important;
}

.jconfirm .jconfirm-box .jconfirm-title-c {
    color: #e0e8f0 !important;
}

.jconfirm .jconfirm-box .jconfirm-content {
    color: #a0b4c8 !important;
}

.jconfirm .jconfirm-box .btn-green {
    background: linear-gradient(135deg, #00d4ff, #4facfe) !important;
    border: none !important;
    border-radius: 8px !important;
}

/* layer 弹窗覆盖 */
.layui-layer {
    border-radius: 12px !important;
}

.layui-layer-content {
    color: #c8d6e5 !important;
}

/* === 滚动条 === */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 14, 23, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.4);
}

/* === 选择框样式 === */
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300d4ff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px !important;
}

/* === checkbox/radio === */
input[type="checkbox"],
input[type="radio"] {
    accent-color: #00d4ff;
}

/* === hr 分隔 === */
hr {
    border-color: rgba(0, 212, 255, 0.1) !important;
    margin: 20px 0;
}