/* ==========================================================================
   千济方登录页 - 灵动·趣味·科技风
   ========================================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --c-primary:        #1e88e5;
    --c-primary-deep:   #0d47a1;
    --c-primary-light:  #64b5f6;
    --c-cyan:           #00bcd4;
    --c-purple:         #7c4dff;
    --c-pink:           #ec407a;
    --c-green:          #26a69a;
    --c-orange:         #ff7043;
    --c-text:           #2c3e50;
    --c-text-soft:      #607d8b;
    --c-text-mute:      #90a4ae;
    --c-border:         #e0e6ed;
    --c-bg-1:           #0a1929;
    --c-bg-2:           #0d2540;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    color: var(--c-text);
}

body.lf-body {
    position: relative;
    background: radial-gradient(ellipse at top left, #0d2540 0%, #050e1a 50%, #020610 100%);
    overflow: hidden;
}

/* === 背景层 === */
.lf-stars, .lf-flow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.lf-stars { z-index: 0; }
.lf-flow  { z-index: 1; opacity: 0.4; mix-blend-mode: screen; }

/* === 装饰光球（背景大色块） === */
.lf-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    z-index: 0;
    pointer-events: none;
    animation: orbFloat 18s ease-in-out infinite;
}
.lf-orb-1 {
    width: 500px; height: 500px;
    top: -150px; left: -150px;
    background: radial-gradient(circle, #1e88e5 0%, transparent 70%);
}
.lf-orb-2 {
    width: 600px; height: 600px;
    bottom: -200px; right: -200px;
    background: radial-gradient(circle, #7c4dff 0%, transparent 70%);
    animation-delay: -6s;
    animation-duration: 22s;
}
.lf-orb-3 {
    width: 400px; height: 400px;
    top: 40%; left: 50%;
    background: radial-gradient(circle, #00bcd4 0%, transparent 70%);
    animation-delay: -12s;
    animation-duration: 26s;
}
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(60px, -40px) scale(1.05); }
    66%      { transform: translate(-40px, 60px) scale(0.95); }
}

/* === 顶部 Logo === */
.lf-header {
    position: relative;
    z-index: 5;
    padding: 24px 40px;
    display: flex;
    align-items: center;
    gap: 24px;
    color: #fff;
    animation: headerSlideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.lf-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
}
.lf-logo i {
    font-size: 32px;
    color: var(--c-primary-light);
    animation: logoPulse 2.4s ease-in-out infinite;
    filter: drop-shadow(0 0 8px var(--c-primary-light));
}
@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.15); }
}
.lf-tagline {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 4px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 24px;
    text-transform: uppercase;
}

/* === 主体两栏 === */
.lf-main {
    position: relative;
    z-index: 5;
    width: 100%;
    height: calc(100vh - 110px - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    gap: 60px;
}

/* === 左侧信息区 === */
.lf-left {
    flex: 1;
    max-width: 500px;
    color: #fff;
    animation: leftSlideIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}
@keyframes leftSlideIn {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}
.lf-left-inner {
    position: relative;
}
.lf-bubble {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
    animation: bubbleFloat 6s ease-in-out infinite;
}
.lf-bubble[data-bubble="2"] { animation-delay: -2s; }
.lf-bubble[data-bubble="3"] { animation-delay: -4s; }
.lf-bubble:hover {
    transform: translateX(8px) scale(1.02);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--c-primary-light);
    box-shadow: 0 8px 24px rgba(30, 136, 229, 0.3);
}
@keyframes bubbleFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}
.bubble-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: linear-gradient(135deg, var(--c-primary), var(--c-cyan));
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.4);
    transition: transform 0.4s;
}
.lf-bubble[data-bubble="2"] .bubble-icon {
    background: linear-gradient(135deg, var(--c-cyan), var(--c-green));
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.4);
}
.lf-bubble[data-bubble="3"] .bubble-icon {
    background: linear-gradient(135deg, var(--c-purple), var(--c-pink));
    box-shadow: 0 4px 12px rgba(124, 77, 255, 0.4);
}
.lf-bubble:hover .bubble-icon { transform: rotate(360deg); }
.bubble-text { flex: 1; }
.bubble-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: 1px;
}
.bubble-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* === 数字统计区 === */
.lf-stats {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-top: 32px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}
.stat-item {
    text-align: center;
    flex: 1;
}
.stat-num {
    font-size: 26px;
    font-weight: 800;
    font-family: 'Consolas', monospace;
    background: linear-gradient(180deg, #ffffff 0%, #64b5f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    filter: drop-shadow(0 0 8px rgba(100, 181, 246, 0.4));
}
.stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
    letter-spacing: 1px;
}
.stat-divider {
    width: 1px;
    height: 30px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* === 右侧登录卡片 === */
.lf-right {
    flex: 0 0 420px;
    animation: rightSlideIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}
@keyframes rightSlideIn {
    from { opacity: 0; transform: translateX(40px) scale(0.95); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

.lf-card {
    position: relative;
    padding: 36px 36px 28px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    overflow: hidden;
    transition: transform 0.4s, box-shadow 0.4s;
}
.lf-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 30px 80px rgba(30, 136, 229, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}
/* 卡片顶部光带 */
.lf-card-glow {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--c-primary) 20%,
        var(--c-cyan) 50%,
        var(--c-purple) 80%,
        transparent 100%);
    background-size: 200% 100%;
    animation: glowSlide 3s linear infinite;
}
@keyframes glowSlide {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}

.lf-card-head { text-align: center; margin-bottom: 24px; }

.lf-avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-cyan) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
    box-shadow:
        0 8px 20px rgba(30, 136, 229, 0.4),
        0 0 0 4px #fff,
        0 0 0 5px rgba(30, 136, 229, 0.2);
    transition: all 0.4s;
    animation: avatarFloat 4s ease-in-out infinite;
}
.lf-avatar.avatar-success {
    background: linear-gradient(135deg, #26a69a 0%, #66bb6a 100%);
    box-shadow:
        0 8px 20px rgba(38, 166, 154, 0.4),
        0 0 0 4px #fff,
        0 0 0 5px rgba(38, 166, 154, 0.2);
}
@keyframes avatarFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
}
.lf-welcome {
    font-size: 14px;
    color: var(--c-text-soft);
    font-weight: 400;
    letter-spacing: 4px;
    margin-bottom: 4px;
}
.lf-system {
    font-size: 17px;
    font-weight: 700;
    color: var(--c-text);
    background: linear-gradient(90deg, var(--c-primary-deep), var(--c-primary), var(--c-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

/* === 输入框 === */
.lf-field {
    position: relative;
    margin-bottom: 18px;
}
.lf-field-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: var(--c-text-mute);
    font-size: 16px;
    transition: all 0.3s;
    z-index: 2;
}
.lf-input {
    width: 100%;
    height: 48px;
    padding: 0 44px 0 44px;
    border: 1.5px solid var(--c-border);
    border-radius: 10px;
    font-size: 14px;
    color: var(--c-text);
    background: rgba(255, 255, 255, 0.6);
    transition: all 0.3s;
    outline: none;
}
.lf-input::placeholder {
    color: var(--c-text-mute);
    transition: all 0.3s;
}
.lf-input:focus {
    border-color: var(--c-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.1);
    transform: translateY(-1px);
}
.lf-input:focus + .lf-field-bar,
.lf-field:hover .lf-field-bar { transform: scaleX(1); }
.lf-field:focus-within .lf-field-icon {
    color: var(--c-primary);
    transform: translateY(-50%) scale(1.2);
}
.lf-field:focus-within .lf-input::placeholder {
    transform: translateX(4px);
    opacity: 0.7;
}
.lf-field-bar {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--c-primary), var(--c-cyan));
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 3;
}

/* 眼睛切换 */
.lf-field-eye {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: var(--c-text-mute);
    cursor: pointer;
    padding: 4px;
    transition: color 0.3s;
    z-index: 2;
}
.lf-field-eye:hover { color: var(--c-primary); }

/* 验证码 */
.lf-field-code .lf-input { padding-right: 110px; }
.lf-code-img {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 90px;
    height: 36px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--c-border);
    transition: all 0.3s;
    z-index: 2;
}
.lf-code-img:hover {
    border-color: var(--c-primary);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 2px 8px rgba(30, 136, 229, 0.2);
}
.lf-code-img img { display: block; height: 100%; }

/* === 记住我 / 链接 === */
.lf-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 6px 0 22px;
}
.lf-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    color: var(--c-text-soft);
    font-size: 13px;
}
.lf-check input { display: none; }
.lf-check-box {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--c-border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #fff;
    font-size: 11px;
    transition: all 0.3s;
}
.lf-check input:checked + .lf-check-box {
    background: linear-gradient(135deg, var(--c-primary), var(--c-cyan));
    border-color: var(--c-primary);
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(30, 136, 229, 0.4);
}
.lf-link {
    color: var(--c-primary);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s;
}
.lf-link:hover { color: var(--c-cyan); text-shadow: 0 0 6px var(--c-cyan); }

/* === 登录按钮 === */
.lf-btn {
    position: relative;
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-cyan) 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 4px;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow:
        0 8px 20px rgba(30, 136, 229, 0.4),
        0 0 0 0 rgba(30, 136, 229, 0);
    transition: all 0.4s;
}
.lf-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 28px rgba(30, 136, 229, 0.5),
        0 0 0 4px rgba(30, 136, 229, 0.1);
}
.lf-btn:active { transform: translateY(0); }
.lf-btn-text { position: relative; z-index: 2; }
.lf-btn-arrow {
    position: relative;
    z-index: 2;
    transition: transform 0.4s;
}
.lf-btn:hover .lf-btn-arrow { transform: translateX(6px); }
.lf-btn-shine {
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%);
    transition: left 0.6s;
}
.lf-btn:hover .lf-btn-shine { left: 100%; }

/* === 分割线 + 第三方登录 === */
.lf-divider {
    position: relative;
    text-align: center;
    margin: 22px 0 16px;
    color: var(--c-text-mute);
    font-size: 12px;
}
.lf-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--c-border), transparent);
}
.lf-divider span {
    position: relative;
    background: #fff;
    padding: 0 16px;
}
.lf-social {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.lf-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-text-soft);
    font-size: 18px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.lf-social-btn:hover {
    background: linear-gradient(135deg, var(--c-primary), var(--c-cyan));
    color: #fff;
    transform: translateY(-3px) rotate(360deg);
    box-shadow: 0 8px 16px rgba(30, 136, 229, 0.4);
}

/* === 底部 === */
.lf-footer {
    position: fixed;
    bottom: 16px;
    left: 0; right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    z-index: 5;
    animation: fadeIn 1.5s 1.5s both;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* === 爆炸粒子层 === */
.lf-burst {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
}

/* === 入场动画（共用） === */
@keyframes headerSlideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === 错误抖动 === */
.lf-field.lf-shake {
    animation: shake 0.4s;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-8px); }
    50%      { transform: translateX(8px); }
    75%      { transform: translateX(-4px); }
}

/* === 减少动效 === */
@media (prefers-reduced-motion: reduce) {
    .lf-stars, .lf-flow, .lf-orb, .lf-bubble, .lf-avatar,
    .lf-card-glow, .lf-logo i, .lf-btn-shine,
    .lf-social-btn, .lf-social-btn:hover {
        animation: none !important;
        transition: none !important;
    }
}

/* === 响应式 === */
@media (max-width: 1100px) {
    .lf-left { display: none; }
    .lf-main { gap: 0; }
    .lf-right { flex: 1; max-width: 420px; }
}
@media (max-width: 600px) {
    .lf-header { padding: 16px 20px; }
    .lf-tagline { display: none; }
    .lf-main { padding: 0 16px; }
    .lf-card { padding: 24px 20px 18px; }
}
