* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.avtice:hover {
    font-weight: 700;
    cursor: pointer;
}

i {
    font-style: normal;
}

.disnone { display: none; }
.disblock { display: block; }

/* ===== body ===== */
body {
    background: #0a0e1a;
    position: relative;
    height: 100vh;
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    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: 50px 50px;
}

body::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 600px; height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
    animation: glowPulse 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* ===== 登录卡片 ===== */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.loginSignup {
    background: rgba(10, 14, 26, 0.8);
    border-radius: 16px;
    box-shadow:
        0 0 40px rgba(0, 212, 255, 0.1),
        0 0 80px rgba(0, 212, 255, 0.05),
        inset 0 0 60px rgba(0, 212, 255, 0.02);
    padding: 45px 35px;
    width: 100%;
    max-width: 420px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    position: relative;
    animation: cardAppear 0.6s ease-out;
}

.loginSignup::before {
    content: '';
    position: absolute;
    top: -1px; left: 20%; right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
    border-radius: 2px;
    box-shadow: 0 0 10px #00d4ff;
}

@keyframes cardAppear {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== 标题 ===== */
h1 {
    text-align: center;
    margin-bottom: 35px;
    font-size: 26px;
    font-weight: 300;
    letter-spacing: 4px;
    color: #00d4ff;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    text-transform: uppercase;
}

/* ===== 输入框容器 ===== */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 8px;
    margin: 18px 0;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.input-group:focus-within {
    border-color: rgba(0, 212, 255, 0.5);
    background: rgba(0, 212, 255, 0.08);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

.input-group input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: #e0e0e0;
    caret-color: #00d4ff;
    width: 100%;
    padding: 8px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-radius: 4px;
    -webkit-appearance: none;
    appearance: none;
}

.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover,
.input-group input:-webkit-autofill:focus,
.input-group input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0px 1000px #091e2c inset !important;
    -webkit-text-fill-color: #e0e0e0 !important;
    caret-color: #00d4ff;
    transition: background-color 5000s ease-in-out 0s;
}

.input-group input::placeholder {
    color: rgba(0, 212, 255, 0.35);
    opacity: 1;
    font-size: 14px;
    letter-spacing: 1px;
}

.input-group i {
    font-size: 18px;
    margin-right: 12px;
    width: 20px;
    text-align: center;
    color: rgba(0, 212, 255, 0.5);
    transition: color 0.3s ease;
}

.input-group:focus-within i {
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.input-group .visual {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    width: auto;
    margin-right: 0;
    transition: color 0.3s ease;
}

.input-group .visual:hover {
    color: #00d4ff;
}

/* ===== 提示行 ===== */
.hint {
    display: flex;
    justify-content: space-between;
    margin: 12px 0 20px;
    font-size: 13px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    color: rgba(0, 212, 255, 0.7);
    cursor: pointer;
}

.checkbox-label input {
    width: auto;
    margin-right: 8px;
    accent-color: #00d4ff;
    background: transparent !important;
}

/* ===== 按钮 ===== */
.btn {
    width: 100%;
}

.btn span {
    display: block;
    text-align: center;
    width: 100%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 150, 255, 0.1));
    border: 1px solid rgba(0, 212, 255, 0.4);
    padding: 14px;
    margin: 25px 0 15px;
    font-size: 16px;
    letter-spacing: 3px;
    border-radius: 8px;
    cursor: pointer;
    color: #00d4ff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn span::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn span:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(0, 150, 255, 0.2));
    border-color: #00d4ff;
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.3);
    color: #fff;
}

.btn span:hover::before {
    left: 100%;
}

/* ===== 切换表单 ===== */
.switch-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.4);
}

.switch-form span:last-child {
    color: #00d4ff;
    font-weight: 500;
    cursor: pointer;
    transition: text-shadow 0.3s;
}

.switch-form span:last-child:hover {
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* ===== 语言选择 ===== */
.indLanguage {
    text-align: center;
    margin-top: 25px;
}

select {
    width: 120px;
    padding: 8px 12px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    background-color: rgba(10, 14, 26, 0.8);
    font-size: 13px;
    color: rgba(0, 212, 255, 0.7);
    cursor: pointer;
    outline: none;
    transition: all 0.3s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

select:focus {
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

select::-ms-expand {
    display: none;
}

/* ===== 登录动画 ===== */
@keyframes border-marquee {
    0% { box-shadow: 0 0 0 0px rgba(0, 212, 255, 0.5); }
    100% { box-shadow: 0 0 0 15px rgba(0, 212, 255, 0); }
}

.btn-login-animation {
    position: relative;
    overflow: hidden;
    animation: border-marquee 1s infinite linear;
}

/* ===== 响应式 ===== */
@media (max-width: 480px) {
    .loginSignup {
        padding: 35px 25px;
        margin: 0 10px;
    }

    h1 {
        font-size: 22px;
    }

    .btn span {
        padding: 12px;
        font-size: 15px;
    }

    .input-group {
        margin: 15px 0;
        padding: 10px 14px;
    }
}

@media (max-height: 600px) {
    .login-container {
        align-items: flex-start;
        padding-top: 30px;
    }
}

/* ===== ��¼ҳ��̬����������Canvas + ������ ===== */
#bgParticles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

.aurora-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}

.aurora1 {
    width: 55vw; height: 55vw;
    left: -15vw; top: -20vh;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.10) 0%, rgba(0, 150, 255, 0.04) 45%, transparent 70%);
    animation: auroraDrift1 26s ease-in-out infinite;
}

.aurora2 {
    width: 60vw; height: 60vw;
    right: -18vw; bottom: -25vh;
    background: radial-gradient(circle, rgba(0, 150, 255, 0.08) 0%, rgba(120, 0, 255, 0.04) 40%, transparent 70%);
    animation: auroraDrift2 34s ease-in-out infinite;
}

@keyframes auroraDrift1 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
    50%      { transform: translate(6vw, 4vh) scale(1.15); opacity: 1; }
}

@keyframes auroraDrift2 {
    0%, 100% { transform: translate(0, 0) scale(1.05); opacity: 0.7; }
    50%      { transform: translate(-5vw, -6vh) scale(0.92); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .aurora-blob { animation: none; }
}

/* ��¼���������ڱ�����֮�� */
.login-container { position: relative; z-index: 2; }

/* ===== 登录右滑验证滑块 ===== */
.slide-verify {
    margin: 4px 0 6px 0;
    user-select: none;
    -webkit-user-select: none;
}

.slide-verify .sv-track {
    position: relative;
    height: 40px;
    border-radius: 8px;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.18);
    overflow: hidden;
    transition: border-color 0.3s, background 0.3s;
}

.slide-verify .sv-track.sv-active {
    border-color: rgba(0, 212, 255, 0.5);
}

.slide-verify .sv-track.sv-ok {
    /* 庆祝：暖金+绿渐变 + 双色外发光 */
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.16), rgba(0, 230, 118, 0.14));
    border-color: rgba(255, 193, 7, 0.55);
    box-shadow: 0 0 16px rgba(255, 193, 7, 0.22), 0 0 10px rgba(0, 230, 118, 0.28);
}

/* 成功后扫光带从左到右掠过两次 */
.slide-verify .sv-track.sv-ok::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 45%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.30), transparent);
    animation: svShimmer 1.1s ease-out 0.05s 2;
    pointer-events: none;
}

@keyframes svShimmer {
    to { left: 115%; }
}

/* ===== 滑块成功彩纸粒子 ===== */
.slide-verify { position: relative; }

.sv-confetti {
    position: absolute;
    width: 7px;
    height: 11px;
    pointer-events: none;
    opacity: 0.95;
    border-radius: 1.5px;
    z-index: 3;
    animation: svConfettiFly 0.9s cubic-bezier(0.15, 0.65, 0.4, 1) forwards;
}

@keyframes svConfettiFly {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0.95; }
    100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .sv-confetti,
    .slide-verify .sv-track.sv-ok::after { animation: none; display: none; }
}

.slide-verify .sv-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.10), rgba(0, 212, 255, 0.25));
}

.slide-verify .sv-track.sv-ok .sv-fill {
    background: linear-gradient(90deg, rgba(0, 230, 118, 0.12), rgba(0, 230, 118, 0.30));
}

.slide-verify .sv-text {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    font-size: 13px;
    color: #7a8ba0;
    letter-spacing: 1px;
    pointer-events: none;
    transition: color 0.3s;
}

.slide-verify .sv-track.sv-ok .sv-text {
    color: #00e676;
    font-weight: 600;
}

.slide-verify .sv-handle {
    position: absolute;
    left: 0;
    top: 0;
    width: 44px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1565c0, #00b8d9);
    border-radius: 8px 0 0 8px;
    cursor: grab;
    touch-action: none;
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.35);
    transition: left 0.3s ease;
}

.slide-verify .sv-handle:active {
    cursor: grabbing;
}

.slide-verify .sv-track.sv-ok .sv-handle {
    background: linear-gradient(135deg, #00c853, #00e676);
    border-radius: 8px;
    cursor: default;
    box-shadow: 0 0 14px rgba(0, 230, 118, 0.5);
}

.slide-verify .sv-icon {
    color: #fff;
    font-size: 16px;
    line-height: 1;
    transform: scaleX(1.15);
}

.slide-verify .sv-track.sv-ok .sv-icon {
    transform: none;
}

/* 未验证时点击登录的抖动提示 */
.slide-verify.sv-shake {
    animation: svShake 0.4s ease;
}

@keyframes svShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-7px); }
    40% { transform: translateX(7px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

/* ===== ������֤�������� + ���Ͱ�ť ===== */
.email-code-row {
    gap: 8px;
}

.email-code-row input {
    letter-spacing: 2px;
    font-family: Consolas, Monaco, monospace;
}

.send-code-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.send-code-btn:hover:not(:disabled) {
    background: rgba(0, 212, 255, 0.12);
    border-color: rgba(0, 212, 255, 0.5);
}

.send-code-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.send-code-btn.countdown {
    color: #7a8ba0;
    border-color: rgba(0, 212, 255, 0.15);
}

/* 全局滚动条统一深色风格（页面级+元素级） */
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: rgba(0,0,0,0.25); }
*::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.25); border-radius: 4px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(0,212,255,0.45); }
html { scrollbar-width: thin; scrollbar-color: rgba(0,212,255,0.35) rgba(0,0,0,0.25); }
