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

html { overflow-x: hidden; }
body { overflow-x: hidden;
    font-family: Helvetica, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #060b1a;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    padding: env(safe-area-inset-top) 20px env(safe-area-inset-bottom);
}

/* 粒子画布 */
#particles-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* 光线扫描 - 光晕 */
body::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(0,113,227,0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 30%, rgba(52,199,89,0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 70%, rgba(0,113,227,0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: lightRotate 15s ease-in-out infinite;
}

@keyframes lightRotate {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(3deg) scale(1.05); }
    50% { transform: rotate(0deg) scale(1.08); }
    75% { transform: rotate(-3deg) scale(1.05); }
    100% { transform: rotate(0deg) scale(1); }
}

/* 光线扫描 - 斜光束 */
body::after {
    content: '';
    position: absolute;
    top: -100%;
    left: -30%;
    width: 80%;
    height: 300%;
    background: linear-gradient(105deg,
        transparent 40%,
        rgba(0,113,227,0.04) 45%,
        rgba(0,113,227,0.08) 50%,
        rgba(0,113,227,0.04) 55%,
        transparent 60%
    );
    pointer-events: none;
    z-index: 0;
    animation: beamSweep 8s ease-in-out infinite;
}

@keyframes beamSweep {
    0% { transform: translateX(-100%) rotate(15deg); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateX(200%) rotate(15deg); opacity: 0; }
}

/* 浮动光点 */
.floating-orbs {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.5;
    animation: orbFloat 12s ease-in-out infinite;
}
.orb:nth-child(1) {
    width: 300px; height: 300px;
    background: rgba(0,113,227,0.15);
    top: 10%; left: 5%;
    animation-delay: 0s;
    animation-duration: 14s;
}
.orb:nth-child(2) {
    width: 200px; height: 200px;
    background: rgba(52,199,89,0.1);
    top: 60%; right: 10%;
    animation-delay: -4s;
    animation-duration: 16s;
}
.orb:nth-child(3) {
    width: 250px; height: 250px;
    background: rgba(0,113,227,0.12);
    bottom: 5%; left: 30%;
    animation-delay: -8s;
    animation-duration: 18s;
}
.orb:nth-child(4) {
    width: 180px; height: 180px;
    background: rgba(255,159,10,0.08);
    top: 30%; right: 25%;
    animation-delay: -2s;
    animation-duration: 13s;
}
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.1); }
    50% { transform: translate(-20px, -20px) scale(0.95); }
    75% { transform: translate(10px, -50px) scale(1.05); }
}





.login-container {
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,0.95);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25), 0 0 0 0.5px rgba(255,255,255,0.1);
    width: 100%;
    max-width: 420px;
    text-align: center;
    transition: all 0.3s ease;
}

.login-container:hover {
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 0 0 0.5px rgba(255,255,255,0.15);
    transform: translateY(-3px);
}

.login-container h2 {
    margin-bottom: 30px;
    color: #1d1d1f;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0;
    position: relative;
}

.login-container h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #0071e3;
    border-radius: 3px;
}

.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 26px;
}
.login-brand-cat {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    image-rendering: pixelated;
    box-shadow: 0 12px 28px rgba(0,113,227,0.22);
    animation: brandFloat 2.4s ease-in-out infinite;
}
.login-brand h2 { margin: 14px 0 0; }
.login-brand h2::after { display: none; }
.login-brand-sub { margin-top: 6px; color: #86868b; font-size: 12px; letter-spacing: 0.12em; }
@keyframes brandFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #86868b;
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: #f9f9f9;
}

.form-group input:focus {
    outline: none;
    border-color: #0071e3;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
    background: #fff;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: #0071e3;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.login-btn:hover {
    background: #0077ed;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.2);
}

.login-btn:active {
    transform: translateY(0);
}

.error-message {
    color: #ff3b30;
    margin-top: 15px;
    font-size: 14px;
    background: rgba(255, 59, 48, 0.06);
    padding: 10px;
    border-radius: 8px;
    border-left: 4px solid #ff3b30;
}

.footer {
    margin-top: 25px;
    font-size: 12px;
    color: #999;
}

.footer a {
    color: #0071e3;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #0065cc;
    text-decoration: underline;
}

.beian-row {
    margin: 8px 0 0;
    color: #86868b;
    font-size: 11px;
}

.beian-row a {
    color: #86868b;
}

/* 响应式设计 */
@media (max-width: 480px) {
    body {
        align-items: center;
        padding: env(safe-area-inset-top) 20px env(safe-area-inset-bottom);
    }
    .login-container {
        padding: 24px 20px;
        margin: 0 16px;
        transform: translateY(-4vh);
    }

    .login-container:hover {
        transform: translateY(-4vh);
    }

    .login-container h2 {
        font-size: 20px;
    }

    .form-group input {
        padding: 10px 12px;
        font-size: 16px;
    }

    .login-btn {
        padding: 12px;
        font-size: 14px;
    }
}

/* 行情猫登录动画 */
.loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}
.loading::before {
    content: '';
    width: 24px;
    height: 24px;
    background: url("../market-cat.svg") center / contain no-repeat;
    image-rendering: pixelated;
    animation: loginCatHop 0.72s steps(2, end) infinite;
}
.loading::after { content: '行情猫正在登录...'; }
@keyframes loginCatHop {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-4px) rotate(3deg); }
}
	    
