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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

.cursor {
    position: absolute;
    top: 30px;
    left: 30px;
    pointer-events: none;
    z-index: 1000;
}

.box {
    position: absolute;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    pointer-events: none;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

#background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.login-container {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(49, 130, 206, 0.15);
    backdrop-filter: blur(10px);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    z-index: 1;
    transition: all 0.3s ease;
    border: 1px solid rgba(49, 130, 206, 0.2);
}

.login-container:hover {
    box-shadow: 0 12px 40px rgba(49, 130, 206, 0.25);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #1a365d;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(49, 130, 206, 0.3);
}

.login-header p {
    color: #718096;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

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

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.8);
    color: #1a365d;
}

/* 隐藏浏览器默认的密码显示/隐藏按钮 */
.form-group input[type="password"]::-webkit-textfield-decoration-container {
    display: none;
}

.form-group input[type="password"]::-webkit-inner-spin-button,
.form-group input[type="password"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 隐藏IE/Edge的默认密码按钮 */
.form-group input[type="password"]::-ms-reveal {
    display: none;
}

/* 隐藏Firefox的默认密码按钮 */
.form-group input[type="password"] {
    -moz-appearance: textfield;
}

.form-group input:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
    background-color: white;
}

.form-group input:hover {
    border-color: #cbd5e0;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.05);
}

.password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #718096;
    font-size: 18px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #3182ce;
}

/* 验证码区域样式 */
.captcha-group {
    margin-bottom: 20px;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-container input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.8);
    color: #1a365d;
    text-transform: uppercase;
}

.captcha-container input:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
    background-color: white;
}

.captcha-container img {
    height: 44px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.captcha-container img:hover {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.login-button {
    width: 100%;
    padding: 12px;
    background-color: #3182ce;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 0 15px rgba(49, 130, 206, 0.5);
}

.login-button:hover {
    background-color: #2c5282;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.6);
}

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

.forgot-password {
    text-align: right;
    margin-top: 12px;
}

.forgot-password a {
    color: #3182ce;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #2c5282;
    text-decoration: underline;
}

.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #e2e8f0;
}

.divider span {
    padding: 0 12px;
    color: #718096;
    font-size: 14px;
}

.social-login {
    display: flex;
    gap: 12px;
}

.social-button {
    flex: 1;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #718096;
}

.social-button:hover {
    border-color: #3182ce;
    box-shadow: 0 2px 8px rgba(49, 130, 206, 0.2);
    color: #1a365d;
}

.social-button i {
    font-size: 18px;
}

.social-button.qq i {
    color: #12b7f5;
}

.social-button.phone i {
    color: #10b981;
}

/* 自定义弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 12px;
    width: 300px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease;
    text-align: center;
}

.modal-header {
    margin-bottom: 15px;
}

.modal-body {
    margin-bottom: 20px;
    color: #333;
    font-size: 16px;
}

.modal-footer {
    display: flex;
    justify-content: center;
}

.modal-button {
    background-color: #3182ce;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.modal-button:hover {
    background-color: #2c5282;
    transform: translateY(-1px);
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes slideIn {
    from {transform: translateY(-50px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}

@media (max-width: 480px) {
    .login-container {
        padding: 30px;
        margin: 0 20px;
    }

    .login-header h1 {
        font-size: 20px;
    }

    .form-group input {
        padding: 10px 14px;
    }

    .login-button {
        padding: 10px;
    }

    .modal-content {
        width: 90%;
        margin: 30% auto;
    }
}