/* 登录弹窗样式 */
.login-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
}

.login-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    background-color: rgba(18, 41, 109, 0.9);
    border: 2px solid rgba(8, 67, 137, 0.7);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 0 30px rgba(8, 155, 233, 0.3);
}

.login-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(90deg, #CAE0FF, #6EB2FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-form {
    margin-bottom: 20px;
}

.login-input-group {
    margin-bottom: 20px;
}

.login-label {
    display: block;
    margin-bottom: 8px;
    color: #CAE0FF;
    font-size: 16px;
    font-weight: bold;
}

.login-input {
    width: 100%;
    height: 40px;
    padding: 0 15px;
    border: 2px solid rgba(8, 67, 137, 0.7);
    border-radius: 4px;
    background-color: rgba(31, 53, 249, 0.15);
    color: #CAE0FF;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box; /* 添加这个属性 */
}

.login-input:focus {
    outline: none;
    border-color: rgba(8, 155, 233, 0.7);
    box-shadow: 0 0 10px rgba(8, 155, 233, 0.3);
}

.login-button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.login-button {
    width: 120px;
    height: 40px;
    border: none;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(8, 67, 137, 0.7), rgba(8, 155, 233, 0.7));
    color: #CAE0FF;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-button:hover {
    background: linear-gradient(90deg, rgba(8, 155, 233, 0.7), rgba(8, 67, 137, 0.7));
    box-shadow: 0 0 10px rgba(8, 155, 233, 0.3);
}

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

.login-error {
    display: none;
    color: #ff4444;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .login-dialog {
        width: 80%;
        padding: 20px;
    }

    .login-title {
        font-size: 20px;
    }

    .login-button {
        width: 100px;
        height: 35px;
        font-size: 14px;
    }
}