/* ============================================
   管理后台登录页 · 未来科幻风
   ============================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --brand: #5b7cff;
    --brand-2: #38bdf8;
    --accent-2: #22d3ee;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
    background-color: #050a18;
    background-image:
        radial-gradient(1200px 680px at 85% -10%, rgba(91, 124, 255, .25), transparent 58%),
        radial-gradient(900px 580px at -10% 30%, rgba(56, 189, 248, .18), transparent 55%),
        radial-gradient(800px 500px at 50% 115%, rgba(167, 139, 250, .2), transparent 60%),
        linear-gradient(160deg, #050a18 0%, #081128 50%, #0a1428 100%);
}
/* 科技网格 */
.bg-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(91, 124, 255, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(91, 124, 255, .08) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 80%);
    mask-image: radial-gradient(ellipse at center, #000 0%, transparent 80%);
}
/* 星空粒子 */
.bg-stars {
    position: absolute; inset: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,.5), transparent),
        radial-gradient(1px 1px at 70% 15%, rgba(180, 210, 255, .6), transparent),
        radial-gradient(1.5px 1.5px at 85% 55%, rgba(255,255,255,.4), transparent),
        radial-gradient(1px 1px at 40% 75%, rgba(180, 210, 255, .5), transparent),
        radial-gradient(1.5px 1.5px at 10% 60%, rgba(255,255,255,.35), transparent),
        radial-gradient(1px 1px at 55% 40%, rgba(220, 235, 255, .5), transparent);
    animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .45; } to { opacity: .9; } }
/* 中心光晕 */
.bg-glow {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 560px; height: 560px; border-radius: 50%;
    background: radial-gradient(circle, rgba(91, 124, 255, .18), transparent 70%);
    filter: blur(20px);
}

/* 登录卡片 */
.login-card {
    position: relative;
    width: 400px;
    padding: 44px 40px 36px;
    border-radius: 22px;
    background: rgba(16, 28, 52, .78);
    border: 1px solid rgba(120, 160, 255, .28);
    backdrop-filter: saturate(160%) blur(24px);
    -webkit-backdrop-filter: saturate(160%) blur(24px);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .6), 0 0 80px rgba(91, 124, 255, .18), 0 0 0 1px rgba(255,255,255,.04) inset;
    z-index: 2;
    overflow: hidden;
}
/* 顶部霓虹光带 */
.login-card::before {
    content: "";
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 78%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand-2), #a78bfa, transparent);
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, .8));
}
/* 底部柔和光晕 */
.login-card::after {
    content: "";
    position: absolute; bottom: -60px; left: 50%; transform: translateX(-50%);
    width: 300px; height: 120px;
    background: radial-gradient(ellipse at center, rgba(91, 124, 255, .22), transparent 70%);
    pointer-events: none;
}
.login-brand {
    display: flex; align-items: center; gap: 14px; margin-bottom: 8px;
}
.logo-mark {
    width: 52px; height: 52px; border-radius: 15px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff; display: grid; place-items: center;
    font-size: 26px; font-weight: 700;
    box-shadow: 0 8px 26px rgba(91, 124, 255, .55), inset 0 1px 0 rgba(255,255,255,.3);
}
.brand-text b { display: block; font-size: 20px; color: #fff; letter-spacing: -.2px; }
.brand-text small { font-size: 12px; color: #7d92b8; letter-spacing: 1px; }
.login-sub {
    color: #94a8c4; font-size: 13px; margin: 0 0 28px;
    padding-bottom: 20px; border-bottom: 1px solid rgba(120, 160, 255, .12);
}

.login-error {
    background: rgba(251, 113, 133, .14);
    border: 1px solid rgba(251, 113, 133, .4);
    color: #fda4af; padding: 11px 14px; border-radius: 10px;
    font-size: 13px; margin-bottom: 20px;
}

.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: #c3d2e8; margin-bottom: 8px; }
.input-wrap {
    display: flex; align-items: center; gap: 10px;
    background: rgba(6, 13, 28, .6);
    border: 1px solid rgba(120, 160, 255, .22);
    border-radius: 12px; padding: 0 14px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.input-wrap:focus-within {
    border-color: var(--brand-2);
    background: rgba(6, 13, 28, .8);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, .15), 0 0 22px rgba(34, 211, 238, .22);
}
.input-wrap .ic { display: flex; color: #7d92b8; transition: color .2s ease; }
.input-wrap:focus-within .ic { color: var(--brand-2); }
.input-wrap input {
    flex: 1; background: transparent; border: none; outline: none;
    padding: 13px 0; font-size: 15px; color: #eaf2ff; font-family: inherit;
}
.input-wrap input::placeholder { color: #5d7090; }

.login-btn {
    position: relative;
    width: 100%; padding: 14px; border: none; border-radius: 12px;
    font-size: 16px; font-weight: 700; color: #fff; cursor: pointer;
    letter-spacing: 4px;
    background: linear-gradient(120deg, #4a6cf0, var(--brand-2));
    box-shadow: 0 10px 30px rgba(91, 124, 255, .4);
    transition: all .2s ease;
    margin-top: 4px;
    overflow: hidden;
}
.login-btn .btn-text { position: relative; z-index: 1; }
/* 按钮流光 */
.login-btn .btn-shine {
    position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
    transform: skewX(-20deg);
    transition: left .6s ease;
}
.login-btn:hover .btn-shine { left: 130%; }
.login-btn:hover {
    box-shadow: 0 14px 46px rgba(91, 124, 255, .7);
    transform: translateY(-1px);
}
.login-btn:active { transform: translateY(0); }

.login-foot { text-align: center; margin-top: 22px; }
.login-foot a { color: #7d92b8; font-size: 13px; transition: color .2s; text-decoration: none; }
.login-foot a:hover { color: #c3d2e8; }

@media (max-width: 480px) {
    .login-card { width: 90%; padding: 36px 26px 30px; }
}
